For unit price we can calculate how many cents does an ounce cost, and for doing that we need to divide the amount of total cost in cents by the total ounces:
50 cents/3 ounces = 16.67 cents/ounce
this means that each ounce of nuts costs 16.67 cents, that would be the unit price (price in cents per ounce of nuts)