Prince Andrew and King Charles have come to an agreement regarding the Duke of York remaining at his Royal Lodge.