Cost of class fees per credit hour:
Westside: $98
Pinewood: $115
Let's say that he is taking w hours at Westside and p hours at Pinewood. We know that Tom is taking a combined total of 12 credit hours at the two schools, then:
[tex]\begin{gathered} p+w=12 \\ p=12-w \end{gathered}[/tex]The cost at Westside is:
[tex]C_W=98\cdot w[/tex]And at Pinewood:
[tex]C_P=115\cdot p=115\cdot(12-w)=1380-115\cdot w[/tex]Finally, the total dollar amount he paid for his class fees is:
[tex]\begin{gathered} C_{\text{Total}}=C_W+C_P=98w+1380-115w \\ C_{\text{Total}}=1380-17w \end{gathered}[/tex]