Exercise algebra.equations.linear.balance

Description
Solve a linear equation using only balance rules.

Derivation

4*x-(x-2) == 12+5*(x-1)
algebra.equations.linear.balance.distribute
4*x-x+2 == 12+5*x-5
algebra.equations.linear.balance.collect
3*x+2 == 7+5*x
algebra.equations.linear.balance.var-right-minus, term=3*x
2 == 7+2*x
algebra.equations.linear.balance.con-left-minus, term=7
-5 == 2*x
algebra.equations.linear.balance.scale-to-one, factor=2
-5/2 == x
algebra.equations.linear.flip
x == -5/2