Let the smallest, the middle, and the largest number. The system is

, , and

Add the first and second equations:

Add this to the third equation: or

Substitute into the second equation to get , so .

Substitute into the third equation to get , so .