PLEASE HELP! BRAINLIEST! What is the value of x?

Solution here,
In the figure, the upper small triangle is similar to a lagre triangle.
Now, from the property of similar triangle,
[tex] \frac{5}{40 + 5} = \frac{3}{3 + 2x + 10} \\ or \: \frac{5}{45} = \frac{3}{13 + 2x} \\ or \: 13 + 2x = 27 \\ or \: 2x = 27-13 \\ or \: x = \frac{14}{2} \\ or \: x = 7[/tex]
therefore, x= 7