prompt: If Lyn donates $240 to a private organization each year where 1/3 of it goes to the community pantry project, 1/2 goes to the local crisis fund, 1/4 of the remaining goes to livelihood project funds, and the rest is for contingency funds. How much goes to contingency fund?
messages.content: If Lyn donates $240 to a private organization each year where 1/3 of it goes to the community pantry project, 1/2 goes to the local crisis fund, 1/4 of the remaining goes to livelihood project funds, and the rest is for contingency funds. How much goes to contingency fund?
messages.role: user
messages.content: The community pantry project gets 240 x 1/3 = $<<240*1/3=80>>80.
  The local crisis fund has 240 x 1/2 = $<<240*1/2=120>>120.
  The total funds allocated for the two funds is $80 + $120 = $<<80+120=200>>200.
  So, $240 - $200 = $<<240-200=40>>40 are left for the other 2 funds.
  The livelihood project gets $40 x 1/4 = $<<40*1/4=10>>10.
  This means that the contingency fund is $40 - $10 = $<<40-10=30>>30.
  #### 30
messages.role: assistant