In a right triangle, the hypotenuse is the longest side, an "opposite" side is the one across from a given angle, and an "adjacent" side is next to a given angle. Given an angle of the right triangle, the ratio between the opposite side and the adjacent side to this angle is equal to the tangent of this angle. Using this relation in our problem, we have

If we take the inverse on both sides, we have

Now, using a calculator to find the cotangent of theta, we have

And this is the distance between the sun and the star.