Here is the plan:
The distance of line P to line L is the shortest distance between the two lines which is a perpendicular line from P to L.
First we find the equation of line L in slope intercept form: y = mx + b
We are given two sets of points from which we can compute the slope and can use one of the points to determine the intercept.
Then we find the equation of perpendicular Line P in slope intercept form
Since line P is perpendicular to line L, its slope is the negative reciprocal of the slope of line P.
We can use the given point P to determine the intercept.
We can then set the two equations for y (y = mx + b) equal to each other to find the intersecting point on L where the perpendicular line from P intersects L.
We then use that intersecting point and the given point P to determine the distance using the distance formula.
Please let me know if you have any problems understanding or executing the plan.