We have received correct solutions from Sarah Dunn, Ben Falconer, Fern Smith and Ian Downie, all from Madras College. Well done to you all.

They all used a similar argument:

Conservative 38%
Labour 38% - 1654 votes
SNP 14% + 50 votes
Liberal Democrat 14%

Since all the votes add up to 100%

38% + 38% -1654 +14% + 50 + 14% = 100%
104% - 1604 = 100%
therefore 4% = 1604 votes
1% = 401 votes
and 100% = 40100 total votes.

Therefore

Conservative 38% of 40100 = 15238 votes
Labour 15238 - 1654 = 13584 votes
SNP 5614 + 50 = 5664 votes
Liberal Democrat 14% of 40100 = 5614 votes
TOTAL 40100 votes