Loading simulator…
The starting circuit places yellow and blue LEDs in parallel behind one shared resistor. Because the yellow LED needs less forward voltage, it draws most of the current. The reference solution fixes this by changing the topology, not by adding components.
LED1 has a 2.4 V forward drop, while LED2 has a 3.6 V drop. A shared parallel connection forces the same voltage across both, which does not give balanced currents.R1 = 300 Ω and connects the path as VIN → R1 → I_LED1 → LED1 → I_LED2 → LED2 → GND.At VIN = 9 V, confirm both I_LED1 and I_LED2 show about 10 mA. Compare with the original parallel arrangement to see why matching a resistor does not guarantee matching LED currents.