Abe and 2 friends are going on a diving trip. It costs $400 an hour to rent the boat and a flat fee of $30 per person for the equipment. If they dive for 4 hours, how much is their total cost