26 well you know, there are many moral frameworks
there is utilitarianism, simple consequentialism, among several others
depending on what system you use, you would answer questions like the trolley problem differently
personally, the Harris landscape framework seems to work best. it is where, for every situation, the set of possible outcomes is lined up, and the needless suffering and benefit caused from each outcome are weighed. the outcome which produces the least needless suffering, and in a variation, the one which gets the most net benefit, is the outcome selected