The answer is (3x - 4) (x + 3)
Base in your question the coordinate is P is 2, PQ has a coordinate of 8 while PR has a coordinate of 12. To find the mid point of each segment you must first find the coordinate of QR which is from 8-12. So the answer will be
PQ = 5, PR = 6, and QR= 10