Answer:
B=18.15T
Step-by-step explanation:
The force due to the magnetic field must equal the gravitational force
Fm=Fg
We assume that the direction of the magnetic field is perpendicular to the current in the wire. By using the expression for the magnetic force in a wire, we have

where L is the length of the wire, and i is the current.
For the gravitational force we have:

Hence, by doing Fm=Fg

Hope this helps!!