Hello, I need two formulas to help me solve below scenario.

1. A sum for the first occurrence of total price of each item times the price, i.e. (apple will be 2). So there is two 5s in the price, how should i write a formula to omit the second 5?
2. A sum of the first occurrence of the total price of each item in the corresponding season, i.e.(watermelon in summer will be 5, watermelon in fall will be 10. In the above, watermelon will be 15 as it will not constitute the season).

Please help!

Items Season Price
Apple fall 2
peach summer 5
banana fall 3
watermelon summer 5
watermelon fall 10