Mr. Mukharjee gave 5/14 of his money to his son, 2/3 of the remainder to his daughter and rest to his wife. If his wife got Rs. 36000/-, what was the total amount?