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 (y) can be expressed as a straight line equation in terms of the square footage (x): \( y = 300x \), where the cost increases consistently by a fixed amount for every additional square foot.
The other scenarios involve variables that change in a non-linear manner due to variations in items, speed, or distance.