Elizabeth is holding a dinner party, but she doesn’t have enough plates or cups.

To fix this, she goes to the store and buys p plates and cups.

Given that plates cost $9 and cups cost $7, write an expression for the total cost of all the plates and cups.