Q and R respectively. The distance of center of mass of the system from P is: