in the example above, the best option would be to not pull the lever. the trolly will derail from hitting so many people in a row that the one person at the top will be saved. pulling the lever would kill everyone.
see my gundams here
https://imgur.com/a/F7xKM5r
updated 08/01/24; hg mighty strike freedom