The foot of the perpendicular from the point on the line passing through the points and is then
Equation of the line joining two points and is , because y coordinates are same and equal to 4.
Foot of the perpendicular from the point on the line is , which is
Hence