utilitarianism

You are a nurse on a floor with only elderly patients. Every day, each patient tells you about how much pain they are in and asks you to help them. They want you to inject them with something to end their lives. If the patients die, the beds on that floor would be freed up for other patients. The hospital is at 100 percent capacity. There is no other hospital for 30 miles. Other patients may be not receiving care due to a lack of free beds. What is the moral thing to do here? Why is that the moral thing to do? What would a utilitarian say is the moral thing to do? Why would they say that? Compare and contrast the utilitarian approach with that of an ethical egoist or social contact theorist