Well I'll show you what I did to get to the answer of 2/3 and could you please tell me if this is the correct way ?

:
First I formulated two equations for the velocity of ball A and ball B at a certain time t, so:
v(t)A= gt
v(t)B= v0B-gt
The balls collide when v(t)A=2 v(t)B so when gt= 2v0B-2gt .
From this equation the time t when the collision occurred is obtained:
gt = 2v0B - 2gt
3gt= 2v0B
t= 2v0B/3g
The height ball A has traveled from the top of the building is given by
x(t)A= 1/2 gt^2
And the height ball B traveled from the ground is:
x(t)B= v0B t - 1/2 gt^2
Since the collision occurred at a time t= 2v0B/3g the height from the ground where it happened is obtained by substituting t= 2v0B/3g in the x(t)B formula:
x(2v0B/3g)B= v0B (2v0B/3g) - 1/2 g(2v0B/3g)^2=
((2v0B^2)/3g)- (1/2g((4v0b^2)/9g^2))= ((2v0B^2)/3g)- ((4v0b^2)/18g)= ((12v0B^2)/18g)- ((4v0b^2)/18g)= ((8v0b^2)/18g) =((4v0b^2)/9g)
Ok so now I only need to know the height of the building, which is given by the height ball B traveled from the ground till the collision occurred (x(2v0B/3g)B) + the height ball A traveled from the top of the building till the collision (x(2v0B/3g)A) occured. So h= x(2v0B/3g)B + x(2v0B/3g)A. x(2v0B/3g)B was already calculated, so:
x(2v0B/3g)A= 1/2 g(2v0B/3g)^2 = (1/2g((4v0b^2)/9g^2))= ((4v0b^2)/18g)=((2v0b^2)/9g).
The height of the building h= ((2v0b^2)/9g) + ((4v0b^2)/9g)= ((6v0b^2)/9g)
The fraction of the height of the building where the collision occurred is given by x(2v0B/3g)B / h = ((4v0b^2)/9g)/((6v0b^2)/9g) = 2/3
(seen from the ground!, because x(2v0B/3g)B = the height where the collision occurred measured from the ground)
Now this last thing was actually my biggest doubt. I've talked to many fellow students who thought 1/3 was the height where the collision occurred seen from a ground perspective, because they thought: ball A has twice the velocity of ball B when they meet, so ball B had traveled 1/3 from the ground and ball A 2/3 from the top of the building, therefore the collision occurred at 1/3 of the height of the building above the ground... I'm not very sure what's the correct answer... What do you think?