Exercise algebra.equations.linear.balance

Description
Solve a linear equation using only balance rules.

Derivation

12+(x-1)/6 == 2*x-(2*x+2)/5
algebra.equations.linear.balance.remove-div, factor=30
360+5*(x-1) == 60*x+6*(-2*x-2)
algebra.equations.linear.balance.distribute
360+5*x-5 == 60*x-12*x-12
algebra.equations.linear.balance.collect
355+5*x == 48*x-12
algebra.equations.linear.balance.var-right-minus, term=5*x
355 == 43*x-12
algebra.equations.linear.balance.con-left-plus, term=12
367 == 43*x
algebra.equations.linear.balance.scale-to-one, factor=43
367/43 == x
algebra.equations.linear.flip
x == 367/43