To make a beaded necklace Jaime bought a bag containing 24 silver beads and 3 bags of colored beads. Each bag of colored beads contained the same number of beads. Jaime bought a total of 78 beads to make the necklace. How many beads were in each bag of colored beads?