It depends on how many cookies are left over after her family ate 18 cookies. You would take the number of left over cookies and add the amount of cookies they ate and that would be m. For example say I make m cookies and my family ate 10 and now I only have 5 left over, so my m would be 10+5=15, m=15.