In a new necklace, the ratio of star-shaped beads to moon-shaped beads is 5 to 2. If the necklace has 20 star shaped beads, how many total beads are on the necklace? Explain.