a baker makes chocolate cookies and peanut cookies . his recipes allow him to make chocolate cookie in batches of 7 and peanut cookies in batches of 6 . if he makes exactly 99 cookies , what is the minimum number of chocolate chip cookies he makes ?
"7 c + 6 p = 99 we need to maximize p to minimize c so that the eq is also satisfied try substitution for cp to solve so that eqn is satisfied the least value of c for which equation gets satisfied is 5 i . e . 7 * 3 + 6 * 13 = 21 + 78 = 99 hence c is the answer"
multiply(divide(subtract(99, reminder(99, add(7, 6))), add(7, 6)), 7)