your answer is right there
"2 white, 2 blue, 4 yellow and 4 red"
use a resister calculator like this one (of many)
http://home.cogeco.ca/~rpaisley4/LEDcalc.html
Supply Voltage | Voltage Drop Across LED | Desired LED Current
put in about 9.2 volts into the
supply voltage
for 2 Whites put in about 6.2 (2x3.1v led) in the
voltage drop
in
desired current put in about 20ma
then
tear off the resisters you have and reconfigure it for 2 leds in series.
- --{~~}---@-----@----- +
do the same thing for the others, using
3x red with a 6.6v drop across the 3 red leds
and so on. 3x yellow, 2x blue
configure each series set, then test them seperate,
then combine them in parellel connecting what you tested all at once.
(-) |--{~~}---

-----

-----| (+)
(-) |--{~~}--

--

--

-----| (+)
(-) |--{~~}--:naughty:--:naughty:--:naughty:-----| (+)
(-) |--{~~}---:scowl:-----:scowl:-----| (+)
drive current at PEAK of the 9V should be a max of 20ma, if you expect a wee 9v to survive longer and not droop down with such a quantity of leds, you will go for a 10ma MAX, then the alkaline can handle it as it droops.
use the calculator with a battery graph or knowing about how the battery will reduce in voltage under the load. that way you can calculate about how it will operate at 9v AND at 8.4 when its getting weak and going down.
always test with a bit more resistance at first, or use a variable resistor , which you can get locally at any ol radio shack.
with the leds in series you wont waste so much power on something that doesnt put out light, with resisters you will control the current a bit, and with the right quanity of series, and the right resistance, this can sorta work.