PLZ HELP!!! WILL GIVE BRANLIEST !!!

To find X set up a ratio of the two top dimensions and the two bottom dimensions first:
5/3 = 40/2x +10
Now cross multiply:
5 * 2x+10 = 3*40
Simplify:
10x +50 = 120
Subtract 50 from each side:
10x = 70
Divide each side by 10:
x = 70/10
x = 7