is 20 dollars : 6 cans a unit rate or ratio

A ratio compares two quantities. In this case, the quantities being compared are $20 and 6 cans, so it is a ratio.