\begin{equation*}
a=(q\cdot 42)+ r.
\end{equation*}
\begin{equation*}
q = a \fdiv 42
\end{equation*}
and
\begin{equation*}
r=a\fmod 42.
\end{equation*}
Replacing \(q\) and \(r\) by these expressions we get
\begin{equation*}
a=((a\fdiv 42)\cdot 42)+ (a\fmod 42).
\end{equation*}
We are given exactly these two values, in particular
\begin{equation*}
a \fdiv 42 = 7
\end{equation*}
and
\begin{equation*}
a \fmod 42 = 10.
\end{equation*}
Thus we can replace \(a \fdiv 42\) by \(10\) and \(a \fmod 42\) by \(7\) in the equation above and get
\begin{equation*}
a = (10\cdot 42)+7.
\end{equation*}
Evaluating the expression we get
\begin{equation*}
a = (10\cdot 42)+7 = 420+7=427.
\end{equation*}