Answer: a) 36 and b) 4 and 3 respectively.
Explanation:
Since we have given that
Number of boxes each package of raisins contains = 9
Number of granola bars in a box = 12
We need to find the least number he can buy of each so that he has exactly the same number of granola bars and boxes of raisins.
Least number = L.C.M.
So, we will find L.C.M. of 9 and 12 which is equal to 36.
So, the required least number would be 36.
Number of boxes would be

Number of granola bars would be

Hence, a) 36 and b) 4 and 3 respectively.