```Question 171089
The first thing I would do would be to make complaint about being given this computational horror, but here goes anyway.

Assume {{{r}}} is the rate of the boat in still water.  The upstream rate is the speed of the boat in still water minus the current speed:  {{{r-10}}}.  The downstream rate is the rate in still water PLUS the current speed:  {{{r+10}}}.

Assume {{{t}}} is the time it takes to go upstream 29 miles, then since the total time of the trip is 8 hours, the time to go downstream must be {{{8-t}}}.

Using the basic relationship {{{d=rt}}}, written as {{{t=d/r}}}, the upstream trip can be expressed as:

{{{t=29/(r-10)}}}

Likewise, the downstream trip can be expressed as {{{8-t=29/(r+10)}}}

Isolating {{{t}}} in both equations produces:

{{{t=29/(r+10)}}} and {{{t=(-29)/(r-10)+8}}}

This gives us two different expressions for the elapsed time of the upstream trip in terms of the rate of the boat in still water.  We can set these two expressions equal to each other:

{{{29/(r+10)=(-29)/(r-10)+8}}}

Application of the common denominator {{{r^2-100}}}, setting the resulting numerators equal to each other and collecting like terms results in the following: (Intermediate steps left as an exercise for the student)

{{{4r^2-29r+400=0}}}

{{{x = (-(-29) +- sqrt( (-29)^2-4*(4)*(-400) ))/(2*4) }}}

{{{x[1] = (29 + sqrt(7241))/8}}}

{{{x[2] = (29 - sqrt(7241))/8}}} (this root less than zero, so exclude as extraneous}

{{{(29 + sqrt(7241))/8}}} cannot be simplified further because 7241 has no perfect square factors and therefore is the exact answer.  A little calculator work results in a numerical approximation of 14.26 hours elapsed time for the upstream trip.  This answer should properly be rounded to the nearest whole hour because your input values of distance, time, and current speed were all expressed in whole numbers and it is  incorrect (unless greater precision is specified in the problem statement) to express a result of a computation involving measurements to a greater precision than the least precise input measurement.

Calculating the upstream rate, downstream rate, and time for each part of the trip to verify the sum is approximately equal to 8 hours, thereby verifying the answer, is left as an exercise for the student.  Enjoy.```