Solution 4

Entering the coordinates of the points in terms of a