Question: There are 4 children in the classroom, each student will get 2 pencils. How many pencils will the teacher have to give out ?

Solution program:
from sympy import symbols, solve
x = symbols("x")
answer = solve(4*2-x)
print(answer)

Answer: 8