A fruit vendor has 990 apples and 945 oranges. He packs them into baskets. Each basket contains only one of the two fruits but in equal number. Find the number of fruits to be put in each basket in order to have minimum number of baskets.