Solve two-step equations with parentheses