P and Q are the points (3, 1) and (7, 4) respectively. Find the unit…