How does the sentence end? See options at the end

The nails were coming out of the wood and needed to be replaced with screws so the

OPT:
(A). nails were removed.;
(B). screws were removed.;
(A).