First step had applied the addition property of equality, which states that whatever you add on one side of an equation you must add to the other side. In this case, 5 was added to both sides to cancel out -5.
And next step had applied the division property of equality, which states that whatever you divide on one side of an equation you must divide on the other side. In this case, 2 was divided on both sides to isolate x.