The lights in Malcolm’s house are flickering, and he hopes that replacing all of his white lights with colored lights will make it stop. He buys 12 red lights, 3 times as many blue lights, and 6 green lights. If he still has 5 colored lights left to buy, how many white lights did Malcolm have initially?