Leela is making bags of mixed fruit. she will use a total of 24 oranges and 16 mangoes in the bags. What is the greatest number of mixed fruit Leela can make if she wants each bag to contain the same number of oranges and the same number of mangoes ?