What I did was get a special loom adapter from eBay just search for the head unit brand + mg then eBay should do the rest I paid 4.00 GBP and this just clips into the new head unit then splits into the two plugs one grey one orange its the easy way if you're not a brave electrical spaghetti person
..............BTW if that is the connector to the existing radio/cassette, then follow the wires back, you may find 2 connectors that look like this............
.............They may be the ones that fit your new radio if you remove the bare wired connectors (they are called ISO connectors and have been standard fit to most cars and radios (including all MGFs) since 1995).