Catrina, Glen, Lisa, Meg, and Wayne made 87 muffins altogether. Glen made 16 muffins. He put nuts in 1/4 of them. Catrina made 1 less muffin than Glen. One third of them had nuts. Lisa and Meg each made 3 more muffins than Catrina made. Lisa put nuts in 1/3 of her muffins. Meg put nuts in 1/2 of her muffins. Wayne put nuts in 1/4 of his muffins. How many muffins in all had nuts?