Alison has some shapes. She has 14 red cubes and 10 red spheres. She has 12 black cubes and 8 black spheres. Alison is going to select 2 of these shapes. Of these 2 shapes only 1 can be red only 1 can be black only 1 can be a cube and only 1 can be a sphere. In how many ways can Alison select the 2 shapes?