Set up the following problem as a set of linear equations.
Travis runs 6 mph and bikes 18 mph in a race with two events. If the course is 29 miles long and it takes him 2 hours and 10 minutes to complete the race, how long is each segment?
Solution.
In this case, we need to know how long each segment is. There are two legs to the race, so we will let
\begin{align*}
x_1 \amp = \text{number of miles for the run,}\\
x_2 \amp = \text{number of miles for the bike.}
\end{align*}
The equations come from three statements in the problem above. First, we know that the total course is 29 miles long or
\begin{equation*}
x_1+x_2=29.
\end{equation*}
The remaining equation arises from the time it takes Travis to complete the race. In general recall the relationship between speed (a rate), distance and time is
\begin{equation*}
\text{speed} = \frac{\text{distance}}{\text{time}}
\end{equation*}
or solving for time,
\begin{equation*}
\text{time} =\frac{\text{distance}}{\text{speed}}
\end{equation*}
For example, the time it takes Travis to finish the running leg is \(x_1/6\text{.}\) The total time in hours it takes Travis to finish the race is
\begin{equation*}
\frac{x_1}{6} + \frac{x_2}{18} = 2+ \frac{10}{60} = \frac{13}{6}
\end{equation*}
so the linear system is
\begin{align*}
x_1+x_2 \amp =29, \\
\frac{x_1}{6} + \frac{x_2}{18} \amp =\frac{13}{6}.
\end{align*}