There were 120 apples in basket A and basket B. 32 of the apples in basket A were red and the rest were green. 94 of the apples in basket B were red and the rest were green. The number of green apples in both baskets was equal. How many red apples were there altogether?