Similar Triangles are Killing me!

Hi folks, below is a screenshot from greg’s prepswift video on similar triangles. Can someone explain to me how did we get to y and how did we understand that triangle II also shares an x and the y is in the triangle as well?

Try drawing the two triangles separately, and then labelling the common parts in them.