Question: Benny bought a soft drink for 2 dollars and 5 candy bars. He spent a total of 27 dollars. How much did each candy bar cost ?

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

Answer: 5