Jason has some chocolate and macadamia nuts cookies. If he sells

16 chocolate cookies and 4 macadamia nuts cookies a day, he would have 65 chocolate cookies left by the time all the macadamia nuts cookies are sold. If he sells 8 macadamia nuts cookies and 4 chocolate cookies a day, he would have 289 chocolate cookies left by the time all the macadamia nuts cookies are sold. How many chocolate cookies does he have?