Write an equation for the situation then solve for x. After paying $7 for a sandwich, John has $11. With how much money did he start?

(I know the answer to the question but the steps on how to solve for x confuse me)