The Student Council sold the following items at the home football game.

If i stands for income and e stands for expenses, what is the formula for p, profits?