You go to the bank and take out some money (say X dollars and Y cents). By mistake, the teller gives you dollars instead of cents and cents instead of dollars, i.e. you got Y dollars and X cents. On the way home, you buy a newspaper for 20 cents. When you get home, you find you have twice as much money in your wallet as what you had originally intended to withdraw. What are X and Y?
Solution is here