According to the similarity of triangles we can conclude that two triangles are similar if

in which A is the measure of one side of the initial triangle, B is the corresponding side into the other triangle amd k is the scale factor.
Using this

using k find the values of x and y

