It fits. Is it right?
grammar is only half the job
Two endings can fit the grammar. Only one says what the passage says.
Passage: "The pool shut because repairs cost too much." Beginning: "The pool shut because ..." Two endings fit: "repairs were too costly" and "few swimmers camefits, not said".
Grammar shortlists. Meaning picks.