Switching 5V current between two solenoids

You could do it with 1 pin by using the first MOSFET as an inverter to drive the 2nd MOSFET.