Can recommend this article about why the trolley problem is not very useful:

Adrian Rennix & Nathan J. Robinson - The Trolley Problem Will Tell You Nothing Useful About Morality
currentaffairs.org/2017/11/the

Also this experiment shows how people would behave when put into such a situation in real life:

Vsauce - The Trolley Problem in Real Life
youtube.com/watch?v=1sl5KJ69qi

@Gargron