Before we start answering, let's draw a scheme with our measures
As you can see, the shadow and the pole form a right triangle, where A is the angle of elevation to the sun.
Using trigonometric relations, we know that the ratio between the opposite leg to an angle by the adjacent leg to the same angle is equal to the tangent of said angle. Then, we can create the following equation for our angle A:
Then, Angle A is