This is for questions about the legal implications of the trolley problem and its variants. In these problems a hypothetical person is put in the position of doing nothing, which nwill result in several people being killed,or taking positive action, which will result in a smaller number of people being killed or perhaps put at risk.
There a number of variants of of the trolley problem. According to the Wikipedia article, small changes in he way the issue is presented often change the choices of people presented with the ethical issue. Details may also influence the legal response if something similar to the trolley problem were to occur in actuality. Responses night well be different in different jurisdictions.