Question: There are 27 pencils in the drawer. Nancy placed 45 more  pencils in the drawer. How many pencils are now there in total ?

Solution program:
from sympy import symbols, solve
x = symbols("x")
answer = solve(27+45-x)
print(answer)

Answer: 72