trig is new to methanks in advance :D
We know an angle, an opposite side and we're looking for the adjacent side
tan (angle) = opp / adj ....so...
tan 22° = 10 / x rearrange as
x = 10 / tan 22° ≈ 24.8 km