an imperial scepter is mounted with diamonds, rubies, emeralds, and sapphires in the ratio of w : x : y : z. if w, x, y, and z are distinct single digit primes, then how many gems could be on the imperial scepter if it only contains the gems listed above?