You can use a system of equations for this. We will say P = Pedro and R = Ricky. Write out the two equations that we know and plug them into each other.
P = R + 281
2681 = P + R
2681 = (R + 281) + R
2681 = 2R + 281
2681 - 281 = 2R + 281 - 281
2400 = 2R
2400 ÷ 2 = 2R ÷ 2
1200 = R
Ricky hit 1200 and Pedro hit 1481.