Explaining rational decision making as the comparison between marginal benefits and marginal costs of an action