A box contained 50 cent coins and 20 cent coins in the ratio 2:7. Peter took out some 20 cent coins, exchanged them for 50 cent coins and put the money back into the box. The ratio then became 2:3. Find the least possible amount of money in the box.