Salam Alykom,
In the attached question, the answer box is within the equation (NOT at the end).
I tried many times but it did not work.
You can easily insert variables into equations, but to my knowledge, you cannot insert an input box.
\(\large{ \dfrac{{a}^{{n1}}\times {a}^{\hspace{25px} + {n2}}}{{a}^{{n3}}} = {a}^{{n4}}}\)
<div style="display:inline-block; position:relative; font-size:80%; font-family:'Times New Roman'; left:-104px; top:-22px;">{_0}</div>