Jane said to Gerry 'If you give me two goldfish, then we will have an equal number of fish. If you give me one fish, then you will have double the number I have!' What was the total number of fish they had?