Final answer:
For a group of 8 people, the cost of admission would be $40, and for a group of 12 people, it would be $96, based on the piecewise function defining the cost of entry to the museum.
Step-by-step explanation:
The cost of entry to a museum C depends on the number of people p in a group and is defined by a piecewise function. To find the cost of admission for a group of 8 people, we'll use the first part of the function:
C(p) = 5p for p ≤ 9.
For 8 people, the cost would be C(8) = 5 × 8 = $40.
To find the cost of admission for a group of 12 people, we'll use the second part of the function:
C(p) = 8p for p > 9.
For 12 people, the cost would be C(12) = 8 × 12 = $96.