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 98 cookies , what is the minimum number of chocolate chip cookies he makes ?
"7 c + 6 p = 98 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 * 2 + 6 * 14 = 14 + 84 = 98 hence b is the answer"
multiply(divide(subtract(98, reminder(98, add(7, 6))), add(7, 6)), 7)