A coin box contained only twenty-cent and fifty-cent coins in thr ratio of 4:5. When16 fifty-cent coins were taken out and replaced by some twenty-cent coins, the number of fifty-cent coins left in the box was 7/8 of the twenty-cent coins. The total value of all the coins remained the same. Find the sum of money in the coin box.
(question from Bo Zheng)