The sum of the smaller of two consecutive integers and twice the larger integer is 47 . What are the integers ?
from sympy import *
x = symbols('x')
answer = solve([Eq(x+2.0*(x+1.0), 47.0)])
print(answer)
