We can write three equations as follows:
P + Q / 2 = 5050; P + Q = 10100 (1)
Q + R / 2 = 6250 ; Q + R = 12500 (2)
P + R / 2 = 5200 ; P + R = 10400 (3)
Multiply equation (2) by -1 and add (1) + (2) P - R = - 2400 R = P + 2400
By replacing R in equation (3)
P + P + 2400 = 10400 , 2P = 8000
P = 4000