Solve linear equations with brackets (#283)

Solve linear equations with brackets (#283)

Expand brackets first, then solve.