Vicky and John share some sweets in the ratio 2:7. If Vicky ends up with 12 sweets, how many will John have?​