Hunter W. answered 10/27/20
Python Instructor - CS graduate
The numbers we want can be written like: x + y + z = 136
The third number is 8 more than the first: (8 + x)
The second number is 4 times the third: 4(8 + x) or 32 + 4x
So you can rewrite the first equation x + y + z = 136 as x + 4(8 + x) + (8 + x) = 136
Now multiply 4 time (8 + x) to get x + 32 + 4x + 8 + x = 136
Now combine all x's and all numbers to get: 6x + 40 = 136
Subtract the 40: 6x = 96
Divide by 6: x = 16
Now that you know what x is you can plug it in to the initial formulas we made:
The first number is x: 16
The third number: (8 + x) -> (8 + 16) = 24
The second number: 4(8 + x) or 32 + 4x = 32 + 4*16 = 96
Answer: 16, 24, 96