document.write( "Question 820274: A tour boat travels downstream and turns around and travels back upstream. Each trip is 20 miles, (40 miles total), the current is 5 miles per hour. The length of the tour in hours is a function of the still water speed of the tour boat. Write a function and define the variable you use.\r
\n" ); document.write( "\n" ); document.write( "I'm having difficulty writing this into a function, as (to me) there are variables missing. I'm not a word problem person! haha Thank you so much for taking the time to help me!
\n" ); document.write( "

Algebra.Com's Answer #493451 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
When the boat goes upstream, the rate
\n" ); document.write( "of the current gets subtracted
\n" ); document.write( "--------------------
\n" ); document.write( "When the boat goes downstream, the
\n" ); document.write( "rate of the current gets added
\n" ); document.write( "--------------------
\n" ); document.write( "Let \"+s+\" = the speed of the boat in still water
\n" ); document.write( "Let \"+t%5B1%5D+\" = the time to go downstream
\n" ); document.write( "Let \"+t%5B2%5D+\" = the time to go upstream
\n" ); document.write( "--------------------
\n" ); document.write( "Equation for going downstream:
\n" ); document.write( "(1) \"+20+=+%28+s+%2B+5+%29%2At%5B1%5D+\"
\n" ); document.write( "Equation for going upstream:
\n" ); document.write( "(2) \"+20+=+%28+s+-+5+%29%2At%5B2%5D+\"
\n" ); document.write( "--------------------
\n" ); document.write( "What you're looking for is \"+T+=+t%5B1%5D+%2B+t%5B2%5D+\",
\n" ); document.write( "the time for the whole trip
\n" ); document.write( "--------------------
\n" ); document.write( "(1) \"+t%5B1%5D+=+20%2F%28+s%2B5+%29+\"
\n" ); document.write( "and
\n" ); document.write( "(2) \"+t%5B2%5D+=+20%2F%28+s-5+%29+\"
\n" ); document.write( "--------------------
\n" ); document.write( "\"+T+=+20%2F%28+s%2B5+%29+%2B+20%2F%28+s-5+%29+\"
\n" ); document.write( "\"+T+=+20%2A%28+1%2F%28s%2B5%29+%2B+1%2F%28s-5%29%29+\"
\n" ); document.write( "This is \"+T+=+f%28s%29+\"\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );