To determine the distance we can think in the following triangle:
From this triangle we notice that the distance we are looking for is the adjacent leg to the angle given; we also notice that we know the opposite leg of the angle given, then we can use the tangent function: