Mr. Karim gave 40% of the money he had to his wife. He also gave 20% of the remaining amount to each of his three sons. Half of the amount now left was spent on miscellaneous items and the remaining amount of Tk. 12,000 was deposited in the bank. How much money did Mr. Karim have initially ?