Answer:


Explanation:
The smaller and larger triangles you see in the image are similar because
- in each triangle, one of the angles is 90°
- there is a common angle
- therefore the third angles are equal
By the AAA t(Angle-Angle-Angle) theorem the two triangles are similar
AAA Theorem
If in two triangles, corresponding angles are equal, then their corresponding sides are in the same ratio (or proportion) and hence the two triangles are similar.
The smaller triangle has sides 5 and x
The larger triangle has corresponding sides 5 + 7 = 12 and x + y
By the similarity theorem
Equation [1]
Consider the larger triangle which is a right triangle with legs 12 and 5
The hypotenuse of this triangle = x + y
By the Pythagorean theorem,
hypotenuse² = sum of squares of the other two sides
=> (x + y)² = 12² + 5² = 144 + 25 = 169
Therefore
x + y = √169 = 13
So we have x + y = 13
Plugging this value of x + y = 13 into equation [1] we get

Switching sides we get

Since x + y = 13, we can plug the value of x into this equation to get

Answer:


Just an additional note
Because of similarity, the ratio x/y must be equal to 5/7** but this would not be directly using the similarity ratios of triangles but it can be proved:
we have

Flipping both sides we get

and we can use this also to solve for x and y individually
**Incidentally, there is a theorem which directly provides this information. It is called the Side Splitter Theorem but not sure if you had heard about it so didn't want to go there