A fruit seller has a stock of mangoes, bananas, and apples with at least one fruit of each type. At the beginning of a day, the number of mangoes makes up 40% of his stock. That day, he sells half of the mangoes,96 bananas, and 40% of the apples. At the end of the day, he ends up selling 50% of the fruits. What is the smallest possible total number of fruits in the stock at the beginning of the day?