At the farmers market you can buy 3 melons for $10.50, 6 melons for $21, or 9 melons for $31.50. What is the constant of proportionality for buying melons?