Kelvin plans to buy potato chips and coke with $50. If he buys 3 packs of potato chips and 2 cans of coke, $9 will be left. If he buys 4 packs of potato chips and 5 cans of coke, he will need $21 more. Find the prices of a pack of potato chips and a can of coke respectively.