document.write( "Question 1109749: At a thrift store, each shirt costs $4, each pair of pants costs $7, and there is no sales tax on clothing purchases. Jason bought some shirts and some pairs of pants at the thrift store and paid exactly $41. How many shirts and how many pairs of pants did Jason buy at the thrift store?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #724691 by greenestamps(13198)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "If x is the number of shirts and y is the number of pairs of pants, then

\n" ); document.write( "\"4x%2B7y+=+41\"

\n" ); document.write( "You can solve this using formal algebra and the fact that x and y have to be whole numbers. However, since the numbers are small, it is much faster to solve the problem by logical reasoning and a bit of trial and error.

\n" ); document.write( "You know the total spent is an odd number; the cost of a shirt is an even number and the cost of a pair of pants is an odd number. Logic tells you then that the number of pairs of pants must be odd. So

\n" ); document.write( "1 pair of pants = $7; $41-$7 = $34; but 34 is not divisible by 4.

\n" ); document.write( "3 pairs of pants = $21; $41-21 = $20; 20/4 = 5.

\n" ); document.write( "So he bought 3 pairs of pants and 5 shirts.
\n" ); document.write( "
\n" );