It's simple to test just check the resistance between the three wires of each coil. One pair will be double the resistance of the others. These two are the ones you want for each coil.
Do the same for the other coil and you have found your 4 wires needed. Just leave the others disconnected but terminated for safety.