Finding x,
We will use Pythagoras theorem to determine the value of x:

Finding y,
We have to determine the angle, at the bottom left of the bigger triangle.
Using sine rule,

To find the angle on the smaller triangle,

Finding the missing length of y,

So y = 2 + 8, y = 10