To solve this problem we will use the concepts related to Ohm's law for which voltage, intensity and resistance are related.
Mathematically this relationship is given as
Where,
V= Voltage
I = Current
R = Resistance
The value of the given voltage is 12V, while the current is 12mA, therefore the resistance would be
Therefore the resistance is