A person deposits part of his savings in the bank and the rest in the post office. He would earn him 50 rupees more at the end of the year if he had kept all the money in the bank. If the annual simple interest rates in the bank and post office are 10% and 8% respectively, where did he keep the money? His savings amount was Rs.5700.