Unfortunately, if just changing the extension numbers isn't sufficient you will need to delete both phones and rebuild them.
If all you need to do is change the extension numbers, change one to a dummy extension number, then change the other one to the first extension number, then change the first (dummy) extension number back to the second one.