How do you know which is the x and which is the y

Problem: Sarah can buy 6 cans of corn for $4.20. What is the constant of proportionality that relates, x, cans of corn, to y, money spent. (write in equation form)