Mr. Fredrick burns about 2100 calories per day without exercising. For each mile that he walks, he burns an additional 150 calories. Write a linear function modeling the number of calories Mr. Fredrick burns in a given day. How many miles should Mr. Fredrick walk each day to maintain his current weight if he eats 2700 calories per day?