P is a point on the same plane with a fixed point A. If P…