I need help solving for x

Answer:
x = 25
Step-by-step explanation:
Given a line parallel to a side of the triangle and intersecting the other 2 sides then it divides those sides proportionally, that is
[tex]\frac{40}{24}[/tex] = [tex]\frac{x}{15}[/tex] ( cross- multiply )
24x = 600 ( divide both sides by 24 )
x = 25