Exercise algebra.equations.linear.balance

Description
Solve a linear equation using only balance rules.

Derivation

-5/4*(x-7) == 3/4*(x+2)-4[1/2]
algebra.equations.linear.balance.remove-div, factor=4
-5*(x-7) == 3*(x+2)-18
algebra.equations.linear.balance.distribute
-5*x+35 == 3*x-12
algebra.equations.linear.balance.var-right-plus, term=5*x
35 == 8*x-12
algebra.equations.linear.balance.con-left-plus, term=12
47 == 8*x
algebra.equations.linear.balance.scale-to-one, factor=8
47/8 == x
algebra.equations.linear.flip
x == 47/8