Ohm's law states that the resistance, current and voltage are related from the equation:
[tex]R=\frac{V}{I}[/tex]In this case we know the voltage is 12 V and the current is 0.3 A, plugging these values we have:
[tex]\begin{gathered} R=\frac{12}{0.3} \\ R=400 \end{gathered}[/tex]Therefore, the resitsance need is 400 Ohms.