Rama has a collection of 18 red beads and 12 green beads. Uma also such a collection of red and green beads, 20 in all. The ratio of the number of beads in each color is the same for both. How many red beads does Uma have? And how many green beads?