Do you need help with the directions, or actually doing the assignment?
The answer is C.
SPACEEEEE
A. Would be correct because mayor is the subject and lives being the verb.
Castles<span> were primarily built </span>during<span> the </span>wars<span> of the late Middle Ages for the purpose of protection.</span>