Answer:
Teresa's opportunity cost to brew a gallon of root beer = 4/2 = 2 pizzas
Teresa's opportunity cost to make a pizza = 2/4 = 0.5 gallons of root beer
Beth's opportunity cost to brew a gallon of root beer = 6/4 = 1.5 pizzas
Beth's opportunity cost to make a pizza = 4/6 = 0.67 gallons of root beer
Teresa has an absolute and comparative advantage in the production of pizzas (her opportunity cost is lower; 0.5 ≤ 0.67).
If they trade, Teresa will trade pizza in exchange for root beer, while Beth will trade root beer in exchange for pizza.
The highest price at which they can trade a pizza is 2/3 gallon of root beer.