Hi there!
We can use Ohm's law to solve:
[tex]V = IR[/tex]
V = Potential Difference (V)
I = Current (A)
R = Resistance (Ω)
We can rearrange the equation to solve for resistance:
[tex]R = \frac{V}{I}[/tex]
Plug in the given values to solve.
[tex]R = \frac{10}{2} = \boxed{5 \Omega}[/tex]