Check that your LED symbol points towards the negative terminal (the shorter line ... the voltage across the resistor is \((9 - 2) = 7 V\) The current is the same through components in series ...