Observe the figure :
and 
For a right angle triangle :
\Let
and
.
Take the trigonometric functions are
\
, and 
Substitute
,
and
.



Therefore,
.
Find Distance from
.
is opposite side of the right angle triangle.
So,
.
Substitute
,
and 



Distance from
to
is
.
Distance from
to
is
.