I am choosing shapes out of a bag. The ratio of blue shapes to red shapes are 2:1. For the blue shapes, the ratio of spheres to cubes is 2:3. For the red shapes, the ratio of the spheres to cubes is 1:4. Given that there are 12 red spheres, how many blue cubes are there?