Question: Sara goes fishing with Melanie. Sara catches 5 trout. Melanie catches 2 times as many trout as Sara. How many trout did Melanie catch ?

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

Answer: 10