Question: Joan has 10 books. Tom has 38 books.  How many books do they have together ?

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

Answer: 48