Let C be the number of cookies
There would be C-1 cookies.
There would be (C+5)/2 cookies.
C-1=(C+5)/2.
2(C-1)=C+5
2C-2=C+5
C=<<7=7>>7
#### 7