Country x can produce either 30 tons of vegetables or 30 tons of chicken. Country Y can produce either 20 tons of vegetables or 10 tons of chicken. Country x allocates 40% of its labor to vegetables, while country y allocates 20% of its labor to vegetables. In total how many tons of vegetables and chicken do they produce?