Exercise algebra.equations.linear.balance

Description
Solve a linear equation using only balance rules.

Derivation

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