He pays the minor characters 15000*4=$<<15000*4=60000>>60,000

The major characters each get 15000*3=$<<15000*3=45000>>45,000

So he pays the main characters 45,000*5=$<<45000*5=225000>>225,000

So in total he pays 225,000+60,000=$<<225000+60000=285000>>285,000

# Answer

285,000
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
285,000
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?
train