I don’t understand the calculation in Chegg. So, please help me
with step by step calculation. Thanks for your help!

Energy in a Magnetic Field Solenoid A is tightly wound while solenoid B has windings that are evenly spaced with a gap equal to the diameter of the wire. The solenoids are otherwise identical. Determine the ratio of the energies stored per unit length of these solenoids when the same current flows through each





