If the radius of the planet is given by R, and the height above the surface is given by h, use the figure below, and the Pythagorean Theorem to derive the formula for the distance, d, to the horizon tangent point, assuming that the triangle is a right triangle.
Please answer the second one too

