a) 0.5 m
b)

Step-by-step explanation:
a)
At the beginning, the length of the copper wire is:
L = 15.0 m
and the diameter (so, the thickness of each adjacent circle) is

While the diameter of one circle of the solenoid is

So the perimeter of one circle is

So the number of complete circles in the solenoid is

The tickness of one circle is
, so the total length of the solenoid will be:

b)
The magnetic field at the center of a solenoid is given by

where
is the vacuum permeability
n is the number of turns of the solenoid
I is the current in the solenoid
Here we have:
is the vacuum permeability
is the number of turns in the solenoid (calculated in part a)
I = 16.7 A is the current in the solenoid
Substituting, we find: