To answer this question, we have here a linear function with a y-intercept at $2,500.
We can rewrite the situation as follows:
![C(t)=2500+10000t](https://img.qammunity.org/2023/formulas/mathematics/college/pe0v6yrtf9nkxudxfgus16c93fvn412lra.png)
We can see that we will pay $10,000 per year, and the results for the function are in dollars ($).
Now, the cost of attending the school for 3 years is:
![\begin{gathered} C(3)=2500+10000(3) \\ C(3)=2500+30000 \\ C(3)=32500 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/spj7mirr4i3uzqch1g154urgy3eq2gly4c.png)
Therefore, we have that the cost of attending the school for 3 years is $32,500.