- The scenario described is an example of the defense of necessity, covered under Section 81 of the Indian Penal Code, 1860. - Section 81 states that nothing is an offence merely by reason of its being done with the knowledge that it is likely to cause harm, if it be done without any criminal intention to cause harm, and in good faith for the purpose of preventing or avoiding other harm to person or property. - In this case, 'A', the captain, faced with the imminent harm of running down a boat with thirty passengers, chooses to run down a boat with two passengers to prevent the greater harm. The act is done in good faith and without criminal intent to cause harm to the passengers in boat 'C', but to prevent greater harm to passengers in boat 'B'.