Exercise algebra.equations.linear.balance

Description
Solve a linear equation using only balance rules.

Derivation

1/4*x+1/2 == 5/2*x+2
algebra.equations.linear.balance.remove-div, factor=4
x+2 == 10*x+8
algebra.equations.linear.balance.var-right-minus, term=x
2 == 9*x+8
algebra.equations.linear.balance.con-left-minus, term=8
-6 == 9*x
algebra.equations.linear.balance.scale-to-one, factor=9
-2/3 == x
algebra.equations.linear.flip
x == -2/3