You work out an agreement and have your attorneys submit it to the court for approval. One of the attorneys can then draw up the necessary paperwork and deed.