Answer:
25
Explanation:
Those parallel lines tell us our triangles are similar. So that means the corresponding sides are proportional.
So we have that x corresponds to x+15 and
40 corresponds to 24+40.
So we have this proportion to solve:

Let's simplify what we can:

Cross multiply:

Multiply/distribute:

Subtract 40x on both sides:

Divide both sides by 24:

x=25