In order to calculate the value of x, we can use the cosine relation of the angle 60°.
The cosine is equal to the length of the adjacent leg to the angle over the length of the hypotenuse.
So we have:
[tex]\begin{gathered} \cos(60°)=\frac{2}{x}\\ \\ \frac{1}{2}=\frac{2}{x}\\ \\ x=4 \end{gathered}[/tex]Now, to calculate the value of y, we can use the tangent relation of the angle 60°.
The tangent is equal to the length of the opposite leg to the angle over the length of the adjacent leg to the angle.
So we have:
[tex]\begin{gathered} \tan(60°)=\frac{y}{2}\\ \\ \sqrt{3}=\frac{y}{2}\\ \\ y=2\sqrt{3} \end{gathered}[/tex]