This is an example of the Utilitarian Approach for ethical dilemmas, which says that you should pick the thing that does the most good for the most people.
7.1m questions
9.5m answers