Solving equations with brackets and unknowns on both sides

Solve the following equations. You may find it easier if you multiply out the brackets first.