P is a point on AD which divides AD in the ratio 2:1.
Mid point of the line joining the points (x1,y1) and (x2,y2).