Answer:
Number of muffins = 42
Number of cookies = 30
Explanation:
Let number of muffins be m.
Given that there are 12 fewer cookies than muffins
Number of cookies = m - 12
The ratio of muffins in little red riding hoods basket to chocolate chip cookies is 7:5
That is

Number of muffins, m = 42
Number of cookies = m - 12 = 42 - 12 = 30