Answer:
there are only blue cubes, yellow cubes, and green cubes in a bag, the number of blue cubes will be 3Y. The number of green cubes will be 5 * 3Y = 15Y.
If there are twice as many blue cubes as yellow cubes and four times as many green cubes as blue cubes, the probability that Hannah takes a yellow cube is 1/7.