Now we can write two equations about the mixture problem. The first equation is about the total number of milliliters mixed together. The chemist must mix \(x\) milliliters of one solution with \(y\) milliliters of the other solution and end up with 45 milliliters of the mixture, so
\begin{equation*}
\blert{\text{Total amount of mixture:}}~~~~~~x+y=45
\end{equation*}
The second equation uses the fact that the acid in the mixture can only come from the acid in each of the two original solutions. We used the last column of the table to calculate how much acid was in each component, and we add these quantities to get the amount of acid in the mixture.
\begin{equation*}
\blert{\text{Amount of acid:}}~~~~~~0.20x+0.50y=0.40(45)
\end{equation*}
These two equation make up a system:
\begin{gather*}
x+y=45\\
0.20x+0.50y=18
\end{gather*}
To simplify the system we first multiply the second equation by 100 to clear the decimals.
\begin{gather*}
x+y=45\\
20x+50y=1800
\end{gather*}
We’ll solve this system by elimination. Multiply the first equation by \(-20\text{,}\) and add the equations together.
\begin{align*}
-20x-20y \amp = -900\\
\underline{20x+50y} \amp \underline{ {}= 1800\vphantom{y}}\\
30y \amp = 900
\end{align*}
Solving for \(y\text{,}\) we find \(y=30\text{.}\) We substitute \(y=\alert{30}\) into the first equation to find
\begin{equation*}
x+\alert{30}=45
\end{equation*}
or \(x=15\text{.}\) The chemist needs 15 milliliters of the 20% solution and 30 milliliters of the 50% solution for the mixture.