Artificial intelligent assistant

How To Solve Base 15 Equations Question: "Find all values of the digit m, if any, for which $m{\rm A} \mbox{ base fifteen} + m{\rm B} \mbox{ base fifteen} + m{\rm E} \mbox{ base fifteen} − \mbox{CD base fifteen} = 304 \mbox{ base } m.$" To start off, I converted CD to base ten and got $193.$ I then converted $304$ base $m$ to base ten and got $3m^2+0m+4.$ I moved the $193$ over to the other side of the equation and got $m{\rm A} \mbox{ base fifteen} + m{\rm B} \mbox{ base fifteen} + m{\rm E} \mbox{ base fifteen} = 193m^2-189.$ Next, I added $m\rm A,$ $m\rm B,$ and $m\rm E$ to get the number "$(3m+2)5$" base fifteen, which I then converted to base ten and set equal to $193m^2-189.$ Then, I solved, but didn't get an integer as a result. Could someone confirm if what I did was right / wrong? Thanks (and sorry about the tags or lack thereof - bases wasn't one of the options and it didn't let me create a tag for it).

You made a mistake when you "moved the 193 over". You should still have a $3m^2$ term. Also, it's best to convert everything to base ten as soon as possible. This yields: \begin{align*} (15m + 10) + (15m + 11) + (15m + 14) - (15 \cdot 12 + 13) &= 3m^2 + 4 \\\ 45m - 158 &= 3m^2 + 4 \\\ 0 &= 3m^2 - 45m + 162 \\\ 0 &= m^2 - 15m + 54 \\\ 0 &= (m - 6)(m - 9) \\\ m &= 6,9 \end{align*}

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 59fb58e1ce99e216952cf4633b26183d