The shortest distance between a point and a line is the length of the perpendicular segment from the point to the line. In this case, that is
The distance from
can be calculated using the .
By substituting the points for
into the formula we can calculate the distance