Utilitarianism
The theory was made popular by 18th and 19th century British philosophers like Francis Hutcheson, Jeremy Bentham, and John Stuart Mill, but the idea goes all the way back to ancient times.