The scientist can use only the angle x and the distance y to calculate the distance between the Earth and the Sun using the cosine function.
The cosine of an angle is equal to the ratio of the length of the adjacent side and the length of the hypotenuse. In equation form:
cos x = BC / y
Solving for BC
BC = y cos x
BC is the distance between the Earth and the Sun