The author’s purpose in comparing each “mast and spar” to a "prison-bar", is to illustrate the consequences of losing the war to the British.
So the correct placements are:
- a:illustrate the consequences of losing the war to the British
- b:"prison-bar"