Question: On Friday, Sam spent 2 pennies on ice cream. The next day, Sam spent 12 dimes on baseball cards. All in all, how much money did Sam spend?

Solution program:
from sympy import symbols, solve
x = symbols("x")
answer = solve((2*0.01)+(12*0.1)-x)
print(answer)