Given line segment AB and point P, find the point Q on AB closest to P.

A: (40.18826286376941, -78.62289658730467)
B: (-50.85251216574416, -22.209005809985968)
P: (55.78492451714277, -65.65151010015384)
Q: (40.18826286376941, -78.62289658730467)
d: 20.2857763502

Reload.