First figure out how much money Marie makes from selling bread each day by multiplying the number of loaves sold by the price per loaf: 40 loaves * $2/loaf = $<<40*2=80>>80
Next figure out how much money Marie makes from selling cakes each day by multiplying the number of cakes sold by the price per cake: 6 cakes * $12/cake = $<<6*12=72>>72
Now add the money from selling the bread to the money from selling the cakes to find Marie's total daily income: $80 + $72 = $<<80+72=152>>152
Next subtract Marie's daily expenses from her daily income to find her daily profit: $152 - $20 - $2 = $<<152-20-2=130>>130
Finally, divide the price of the cash register by Marie's daily profit to find how many days' profits she needs to pay for it: $1040 / $130 = <<1040/130=8>>8
#### 8