The scenario that can be modeled by a linear function is:
The total cost of building a new home if the builder charges $300 per square foot.
This is a linear function because the total cost increases steadily at a constant rate ($300 for each additional square foot) regardless of the size of the home. In contrast, the other scenarios involve variables that do not maintain a constant rate of change, making them non-linear.