All published worksheets from http://sagenb.org
2*x+3*(x-2)+7==5*x-(3*x+2)
eqn=2*x+3*(x-2)+7==5*x-(3*x+2) eqn.expand()
eqn.subtract_from_both_sides(2*x)
eqn2=3*(x-2)+7==-2 eqn2.expand()
eqn3=3*x+1==-2 eqn3.subtract_from_both_sides(1)
eqn4=3*x==-3 eqn4.divide_both_sides(3)
solve(2*x+3*(x-2)+7==5*x-(3*x+2), x)
#Verifying the step-by-step solution of the equation