Hello Alondra,
To solve this problem, you have to write a proportion using the ratios formed by the similar triangles.
Or proportion can be:
x/(x+2) = 10/15
Cross multiply to solve it:
10x + 20 = 15x
20 = 5x
4 = x
The value of x is 4.
I hope this helps,
MrEQ