Adding in pairs

These are the results when 3 numbers were added in pairs. What were the numbers?

Problem



Three whole numbers, when added two at a time, give sums of 39, 48 and 51.

What is the largest of the three numbers?

This problem is taken from the World Mathematics Championships