Four bags of rice and two bags of corn weigh 52 lbs. Three of the bags of rice weigh 24 lbs. What is the ratio of weight of the bag of corn to the weight of the bag of rice?