Does this question pose any moral dilemmas or inconsistencies in your thought process.
Suppose Bill is a healthy man without family or loved ones. Would it be ok painlessly to kill him if his organs would save five people, one of whom needs a heart, another a kidney, and so on? If not, why not?
Consider another case: you and six others are kidnapped, and the kidnapper somehow persuades you that if you shoot dead one of the other hostages, he will set the remaining five free, whereas if you do not, he will shoot all six. (Either way, he'll release you.)
Do you have different answers to the two above scenarios. If so please explain why they are different.