11A input is assigned to Heatbed only , 5A input is for Motors Extruders and the Arduino Mega.
working on 24V needs modification on Ramps, otherwise you´ll fry your arduinos voltage regulator.
also depending on manufacturer of Ramps supply of 24V at 11A input might get critical as the Polyfuse
can handle max16V.
so as you have 12V magnet supply on 12V ( keep as it is)
in Firmware assign Extruder 0 pin to a pin not used , so you get D10 out of the sensitive Pin List.
Power control should be possible by M42 command then.