Over the summer you find a job walking the local dogs around the neighborhood. You do charge a flat fee for the service, and then an additional rate per dog that you walk. If you walk 5 dogs, then you earn $19.00. If you walk 2 dogs, then you earn $10.00. Write a linear function that represents the relationship between the amount you earn and the number of dogs you walk.