Answer:
Mary
Step-by-step explanation:
Mary has a competitive advantage and has a lower opportunity cost than Bill just having to sacrifice 2 units of food for 1 shelter, while Bill has to sacrifice 4 units of food for producing 1 unit of shelter. It is possible to observe this in the production relation:
Mary's productivity:

Bill's productivity:

We see that Mary has a higher productivity rate, which means that she has the competitive advantage