Using trigonometric relations we can see that:
x = 34.64
y = 20
Let's find the value of x.
We can see that we have a right triangle, notice that x is the opposite cathetus of the given angle.
Then we can use the trigonometric relation:
sin(angle) = (opposite cathetus)/hypotenuse
Then:
sin(60°) = x/40
Solving for x:
x = 40*sin(60°) = 34.64
Let's find y.
y is the adjacent cathetus, so we use the cosine relation:
cos(60°) = y/40
y = cos(60°)*40
y = 20