A worker in a sugar factory packs 24 cardboard boxes with 15 bags of sugar in each. If he had boxes which held 18 bags of sugar each, how many fewer boxes would be needed?