The Scots and English agreed to the Treaty of Ripon whereby the Scots remained in Northern England until the situation was fully resolved.
Citation:
Editors. "Treaty of Ripon".
The Literary Encyclopedia. First published 01 February 2010
[http://www.litencyc.com/php/stopics.php?rec=true&UID=2201, accessed 19 June 2013.]