A common agreement is needed between the UK and EU following Brexit.