Well it seems whoever originally wired the extensions up when the house was built used a different colour code but at least it worked. With the new master socket the BT engineer did it properly. I have now rewired both extensions, but I cannot test it yet as the line has gone dead - due, I hope, to the old number being transferred to the new line.
Thanks for all the advice, I also found this URL helpful:
https://www.tlc-direct.co.uk/Technic...e%20Wiring.htm