The soldiers fought courageously …. The enemy troops
B
Correct answer
Explanation
The phrase 'fought courageously with' means to fight alongside or together with someone. 'With' is the correct preposition to indicate that the soldiers and enemy troops were engaged in battle together. 'Against' would mean opposing each other, which doesn't fit the context of 'fought with' as an idiom.