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:

The cost at Westside is:

And at Pinewood:

Finally, the total dollar amount he paid for his class fees is:
