Let's analyze the pattern to write a rule.
The cost increases by $2 each time.
Rule: Cost = $5 + 2x
To find the cost for 7 people:
Cost = $5 + 2(7) = $5 + 14 = $19
The cost for 8 people is $5 + 2(8) = $5 + 16 = $21
So the amount earned for 7 and 8 people is $19 and $21.
The answer is A.