You can use photo math that helps to
Answer: x=2 you have to simplify both sides and isolate the variable