I think a common utilitarian way of thinking is years of life left. A baby has a far greater expected value of remaining years and thus is often assigned higher moral value by people. For me it was a no-brainer to kill the old people, although I was imagining them as very old such that they each only had ~5 years left on average.