Question: Maria needs 21 cartons of berries to make a berry cobbler. She already has 4 cartons of strawberries and 8 cartons of blueberries. How many more cartons of berries should Maria buy?

Solution program:
from sympy import symbols, solve
x = symbols("x")
answer = solve(21-(4+8)-x)
print(answer)

Answer: 9