Three students each have a different whole number of lollies. If any two of them pair up to share their lollies evenly with each other, the pair of students could be sharing 12, 14, or 18 lollies.
What is the total number of lollies that all three of them have together?