At a supermarket, pineapple juice sells at $1 per pint (16 oz). Greg wants to buy eighteen 40 oz cans of pineapple juice from the supermarket. How much does he have to pay altogether.

(18 * 40) / 16 * 1 = ?