document.write( "Question 1010645: My problem is as follows:
\n" ); document.write( "I need to write a function of the total amount of payment (P) in the number of t-shirts ordered (N).
\n" ); document.write( "Here is the word problem:
\n" ); document.write( "a wholesale store charges $20 per t-shirt for the first 50 t-shirts, then $15 per t-shirt for those t-shirts from 51 to 125 t-shirts, and then $12 for each t-shirt from the 125th t-shirt.\r
\n" ); document.write( "\n" ); document.write( "I would greatly appreciate any help.
\n" ); document.write( "Thanks in advance.
\n" ); document.write( "Maria
\n" ); document.write( "

Algebra.Com's Answer #626207 by MathTherapy(10552)\"\" \"About 
You can put this solution on YOUR website!
My problem is as follows:
\n" ); document.write( "I need to write a function of the total amount of payment (P) in the number of t-shirts ordered (N).
\n" ); document.write( "Here is the word problem:
\n" ); document.write( "a wholesale store charges $20 per t-shirt for the first 50 t-shirts, then $15 per t-shirt for those t-shirts from 51 to 125 t-shirts, and then $12 for each t-shirt from the 125th t-shirt.\r
\n" ); document.write( "\n" ); document.write( "I would greatly appreciate any help.
\n" ); document.write( "Thanks in advance.
\n" ); document.write( "Maria
\n" ); document.write( "
I believe you meant: \"and then $12 for each t-shirt from the 126th \"red%28cross%28125th%29%29\" t-shirt.\"\r
\n" ); document.write( "\n" ); document.write( "This is a piece-wise function, as there're different prices for different numbers of t-shirts purchased
\n" ); document.write( "Number of t-shirts purchased: N
\n" ); document.write( "If up to 50 t-shirts are purchased, cost is: 20N
\n" ); document.write( "If 51 - 125 t-shirts, inclusive, are purchased, cost is: 15(N - 50) + 20(50), or 15N - 750 + 1,000, or 15N + 250
\n" ); document.write( "If more than 125 t-shirts are purchased, cost is: 12(N - 125) + 15(125) + 250, or 12N - 1,500 + 1,875 + 250, or 12N + 625\r
\n" ); document.write( "\n" ); document.write( "We therefore get:
\n" ); document.write( " \n" ); document.write( "
\n" );