Question: Fred found 47 seashells on the beach, he gave Jessica 25 of the seashells. How many seashells does he now have ?

Solution program:
from sympy import symbols, solve
x = symbols("x")
answer = solve(47-25-x)
print(answer)

Answer: 22