Two triangles than make the whole triangle are proportional then

and the upper side of the left triangle is x
we can calculate the lenght of upper triangle

then

we join the relations

we use cross-multiplication. The product of 21 by 30 dividing between 15 is equal to x

the value of x is 42 units