The sum of 3 integers is 251 . The sum of the 1st and 2nd integers exceeds the 3rd by 45 . The 3rd integer is 42 less than the 1st . Find the 3 integers
from sympy import *
x,y,z = symbols('x y z')
answer = solve([Eq(x+y+z, 251.0),Eq(x+y, z+45.0),Eq(z, x-42.0)])
print(answer)
