A restaurant received a shipment of 42 gal of orange juice and 18 gal of cranberry juice. The juice needs to be poured into equal-sized containers. What is the largest amount of juice that each container can hold of each kind of juice?