Step-by-step explanation:
5 - 3x - 2 = x + 2(x + 1)
Group like terms at the LHS and open the brackets at the RHS.
5 - 2 - 3x = x + 2x + 2
3 - 3x = 3x + 2
Group like terms and make x the subject.
3 - 2 = 3x + 3x
1 = 6x
x = 1/6