tan =opposite/adjacent
In this case: tan =X , opposite=Y and adjacent= D
tan(x)=Y(opposite) /D(adjacent)
All terms in the equation are known except for 'D the distance'.
So the distance between the earth and the sun indicate by the symbol 'D' is equal to: y/tan(x)