When the queen counted her jewels, she found that she had five pearls for each diamond, two opals and three rubies for each diamond, and two emeralds for each opal. If she has three diamonds, how many jewels does she have altogether?