Let x = first number
y = second number
z = third number
Then, x+y+z = 125
y = 3z
z = x-5
So, y = 3(x-5) = 3x-15
x + y + z = x + (3x-15) + (x-5) = 125
5x - 20 = 125
5x = 145 x = 29
y = 3x-15 = 72
z = x-5 = 24