Solving Equations Involving Brackets in Algebra