Marge had a winning lottery ticket for $12006 and wanted to spend some of it wisely before using on any fun things. She paid half of the lottery amount for the taxes on her winnings, then put a third of the leftover money towards her student loans. She put $1000 in savings and invested a fifth of that amount in the stock market. How many dollars does she have left for fun?
Marge used half the $12006 for taxes, so she had 12006 / 2 = $<T>divide(12006, 2)=6003.0 left.
She used 1/3 of the leftover money on student loans, so she paid 6003 / 3 = $<T>divide(6003, 3)=2001.0
After paying the student loans, she had 6003 - 2001 = $<T>subtract(6003, 2001)=4002 left.
She put $1000 in savings, so she had 4002 - 1000 = $<T>subtract(4002, 1000)=3002 left.
She invested 1000 / 5 = $<T>divide(1000, 5)=200.0 in the stock market.
After investing, she had 3002 - 200 = $<T>subtract(3002, 200)=2802 left for fun.
