To solve, apply Ohm's Law.

`V = IR`

Plugging in the given voltage across the resistor and the current passing through it, the formula becomes:

`12=2*R`

Isolating the R, it yields:

`12/2=R`

`6 = R`

**Therefore, the resistor has a value of 6 ohms.**

**Further Reading**