I just need to check if the answer I got is right cause I’m not sure. (7th grade)

Answer:
48 ft.
Step-by-step explanation:
Since triangles ABC and DEC are similar (you can prove this quite easily), then we know the ratio of the sides are equal. This is a property of similar triangles. So we take the ratio of the sides CE and DE and the ratios of the sidesBC and AB.
We get:
[tex]\frac{x}{40} = \frac{60}{50} \Rightarrow x = \frac{6}{5}\times 40 = 48.[/tex]
So x is 48 ft.