29 = speed of the boat in still water
c = speed of the current
t = time it took each way
when going Upstream, the boat is not really going "29" fast, is really going slower, is going "29 - c", because the current is subtracting speed from it, likewise, when going Downstream the boat is not going "29" fast, is really going faster, is going "29 + c", because the current is adding its speed to it.
![{\Large \begin{array}{llll} \underset{distance}{d}=\underset{rate}{r} \stackrel{time}{t} \end{array}} \\\\[-0.35em] ~\dotfill\\\\ \begin{array}{lcccl} &\stackrel{miles}{distance}&\stackrel{mph}{rate}&\stackrel{hours}{time}\\ \cline{2-4}&\\ Upstream&180&29-c&t\\ Downstream&342&29+c&t \end{array}\hspace{5em} \begin{cases} 180=(29-c)(t)\\\\ 342=(29+c)(t) \end{cases} \\\\[-0.35em] ~\dotfill](https://img.qammunity.org/2024/formulas/mathematics/college/ra2hfc8iiv8wj9l3h728zvd25llbcghxoi.png)
