A family is planning a camping trip at a state park. The state park has 9 campgrounds, each with 6 campsites. The family wants to go on a hike, and the park has 4 hiking trails. The children also want to go for a swim at one of the 4 beaches. How many different ways can the family plan a camping trip?