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 97 cookies , what is the minimum number of chocolate chip cookies he makes ?
"7 c + 6 p = 97 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 * 1 + 6 * 15 = 7 + 90 = 97 hence a is the answer"
multiply(divide(subtract(97, reminder(97, add(7, 6))), add(7, 6)), 7)