Gina had $400. She gave 1/4 of her money to her mom,  used 1/8  of her money to buy clothes,  gave 1/5 of her money to a charity,  and kept the remaining money. How much did Gina keep?
Gina's mom received 1/4 x $400 = $
<gadget id="calculator">1/4*400</gadget>
<output>100</output>
100.
She used 1/8 x $400 = $
<gadget id="calculator">1/8*400</gadget>
<output>50</output>
50 to buy clothes.
She gave 1/5 x $400 = $
<gadget id="calculator">1/5*400</gadget>
<output>80</output>
80 to a charity.
Thus, she spent a total of $100 + $50 + $80 = $
<gadget id="calculator">100+50+80</gadget>
<output>230</output>
230.
Therefore, Gina kept $400 - $230 = $
<gadget id="calculator">400-230</gadget>
<output>170</output>
170.

<result>170</result>