hope this !
d = distance between moon and sun, which in this problem is the hypotenuse of a right triangle.
the distance y is the side opposite to angle x in the right triangle. use the definition of the sine function from basic trigonometry.
sin(x) = y/d ⇒
d = y/sin(x)
what level of math? also i don't need to be paid if i can you.