To find the correct code, we test each suggestion to see which value for \(\triangle\) makes the equation a true statement.
First, simplify the right-hand side of the equation. Remember that we do the multiplication first:$$1 + 2 \times 6 = 1 + 12 = 13.$$So the equation becomes:$$\triangle + 10 = 13.$$
- Test Louis's code: Substitute \(\textcolor{colordef}{\triangle = 8}\) into the equation. $$ \begin{aligned} \textcolor{colordef}{8} + 10 &= 18 \\
18 &= 13 &&\text{(False)} \end{aligned} $$ Louis's code is incorrect.
- Test Su's code: Substitute \(\textcolor{colordef}{\triangle = 3}\) into the equation. $$ \begin{aligned} \textcolor{colordef}{3} + 10 &= 13 \\
13 &= 13 &&\text{(True)} \end{aligned} $$ Su's code is correct.
The secret code is \(\triangle = 3\) because this is the value that makes the equation true.