James runs a TV show and there are 5 main characters and 4 minor characters.  He pays the minor characters $15,000 each episode.  He paid the major characters three times as much.  How much does he pay per episode?
He pays the minor characters 15000*4=$
<gadget id="calculator">15000*4</gadget>
<output>60_000</output>
60,000.
The major characters each get 15000*3=$
<gadget id="calculator">15000*3</gadget>
<output>45_000</output>
45,000.
So he pays the main characters 45,000*5=$
<gadget id="calculator">45000*5</gadget>
<output>225_000</output>
225,000.
So in total he pays 225,000+60,000=$
<gadget id="calculator">225000+60000</gadget>
<output>285_000</output>
285,000.

<result>285_000</result>