A person went to a bank to cash a check. In handing over the money the cashier, by mistake, gave him dollars for cents and cents for dollars. He kept the money in his pocket without examining it, and spent a nickel on his way home. He then found that he has exactly twice the amount of the check. He had no money in his pocket before going to the bank. What was the exact amount of that check?
Please give me the solution for this puzzle and tell me how to solve it also?