Line segment M has endpoints Q(3,1) and R(2,4). Line segment M' has endpoints Q'(4,2) and R'(7,3) and is created by rotating line segment M around point P. What are the coordinates of P?