Write a real-world problem that can be represented by a linear function. Explain the function rule and give a reasonable domain and range.