Jamie needs to take her dog to the groomer. The groomer charges $20 if the dog is 10 pounds or less. They charge $30 if the dog is over 10 and no more than 30 pounds. If the dog is over 30 pounds, the charge is $40 plus 2 times the number of pounds over 30 that the dog is. Which function represents the grooming fee, c(x), in terms of weight, ×, and how much will Jamie pay if her dog weighs 35 pounds?