R = (9V − 2V) / 20mA = 350Ω
Pick a resistor that drops the leftover voltage at the LED's current. Drag the three inputs.