Utilitarianism

If we applied act utilitarianism to the Runaway Trolley examples, what would this theory say is the right thing to do? If we applied rule utilitarianism to the Runaway Trolley examples, what would this theory say is the right thing to do?