The MB wiring diagram show that each solenoid has a ground wire.
The second terminal of the fuel enrichment solenoid is connected to the fuel enrichment relay which is connected to the TTS and is part of the cold start system.
The second terminal of the fuel shut off solenoid is connected to a micro switch and is part of the emissions system. In general the system and this solenoid shut off fuel to the FIP while coasting to reduce emissions.
You can use an ohm meter to determine which wire is ground. It should not matter which terminal is ground or power feed.