Exercise algebra.equations.linear.balance

Description
Solve a linear equation using only balance rules.

Derivation

18-2*(4*x+2) == 7*x-4*(4*x-2)
algebra.equations.linear.balance.distribute
18-8*x-4 == 7*x-16*x+8
algebra.equations.linear.balance.collect
14-8*x == -9*x+8
algebra.equations.linear.balance.var-left-plus, term=9*x
14+x == 8
algebra.equations.linear.balance.con-right-minus, term=14
x == -6