document.write( "Question 941532: Samantha spent a total of $420 for daily expenses during her vacation in Mexico. She noted that if she spent $7 less per day, she could have stayed for another 5 days. The number of days she actually spent on her vacation is: \n" ); document.write( "
Algebra.Com's Answer #573952 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
Samantha spent a total of $420 for daily expenses during her vacation in Mexico. She noted that if she spent $7 less per day, she could have stayed for another 5 days. The number of days she actually spent on her vacation is:
\n" ); document.write( "-----
\n" ); document.write( "420 = (# of days)*(cost per day)
\n" ); document.write( "------
\n" ); document.write( "(cost per day-7)(days + 5) = 420
\n" ); document.write( "===============================
\n" ); document.write( "Simplify::
\n" ); document.write( "d*c = 420
\n" ); document.write( "(c-7)(d+5) = 420
\n" ); document.write( "------
\n" ); document.write( "cd + 5c - 7d - 35 = 420
\n" ); document.write( "----
\n" ); document.write( "420 + 5c - 7d - 35 = 420
\n" ); document.write( "5c - 7d = 35
\n" ); document.write( "---
\n" ); document.write( "Substitute for \"c\" and solve for \"d\"::
\n" ); document.write( "c = 420/d =
\n" ); document.write( "5(420/d) - 7d = 35
\n" ); document.write( "2100 - 7d^2 = 35d
\n" ); document.write( "d^2 + 5d - 300 = 0
\n" ); document.write( "Positive solution::
\n" ); document.write( "d = 15 days
\n" ); document.write( "---------------------
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "===============
\n" ); document.write( "
\n" );