Question: There are 46 rulers in the drawer. Tim took 25  rulers from the drawer. How many rulers are now in the drawer ?

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

Answer: 21