Given:
To find the distance AP,
On using the formula,
The equation of the line is given by:
Here, r represents the distance of any point on the line from point
The coordinate of any point P on this line are:
Now , P lies on the line:
hence ,
∴ The value of AP is