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 because, in this scenario, the total cost directly increases by a constant rate ($300) for each additional square foot, making it a linear relationship.