Question: Jessica spent $10.22 on a cat toy, and a cage cost her $11.73. What was the total cost of Jessica's purchases?

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