A box (of matches) costs one dollar. The subject of the sentence is box - of matches is a prepositional phrase modifying box. It is not the subject. A box costs…
This group (of children) enjoys playing hide-and-seek. Each (of her brothers) has a motorcycle.