The Joker has essentially set up a social experiment to see if one group would kill another to save itself and whether that would be the “good” or “bad” citizens. From a utilitarian point of view, it is morally acceptable for either boat to go through with this action, because at least half the lives would be saved.