Cracking the Code!

What could the code be? How many triangles would have 12 sides? How many squares would have 12 sides?

How do you know? The children were able to crack the code by representing the shapes with lolly sticks.