Let the number of books bought from Makandaβs shop be
\(x\text{.}\)
The number of books bought from Magutβs shop is;
\begin{equation*}
x + 30\text{.}
\end{equation*}
Amount spent in Magutβs shop is;
\begin{equation*}
= 40 (x + 30).
\end{equation*}
\begin{equation*}
= 40x + 1200.
\end{equation*}
Amount spent in Makandaβs shop is;
\begin{equation*}
= 40x.
\end{equation*}
Total amount;
\begin{equation*}
= 40x + 1200 + 40x
\end{equation*}
\begin{equation*}
= 80x + 1200.
\end{equation*}
Thus,
\begin{equation*}
80x + 1200 = 4400\text{.}
\end{equation*}
\begin{equation*}
80x = 4400 - 1200.
\end{equation*}
\begin{equation*}
80x = 3200.
\end{equation*}
\begin{equation*}
x = 40.
\end{equation*}
Number of books bought from Makandaβs shop is
\(40\) and from Magutβs shop is
\(40 + 30\) =
\(70\text{.}\)