We plot \(t^2-t+2\) and \(\left | t-1 \right |+\left | t-2 \right |\)
As \(t=3^x\) is always positive, therefore only positive values of \(t\) will be the solution.
The graphs intersect for only positive value of \(t\).
So, there is single value of \(x\) given by \(x= \log_3 t\)