By using Ohm's law, we can calculate the resistance of the wire. Ohm's law states that:

where V is the potential difference across the conductor, I is the current and R the resistance. Rearranging the equation, we get

Now we can use the following equation to calculate the length of the wire:

(1)
where

is the resistivity of the material
L is the length of the conductor
A is its cross-sectional area
In this problem, we have a wire of copper, with resistivity

. The radius of the wire is half the diameter:

And the cross-sectional area is

So now we can rearrange eq.(1) to calculate the length of the wire: