which output do you want?

Distinct pricename will give you:
- red
- blue

which pricecost should be associated with the unique values?
yes sir