A solenoid 1.23 m long and 2.15 cm in diameter carries a current of 13.5 A. The magnetic field inside the solenoid is 22.7 mT. Find the length of the wire forming the solenoid.