.
Check your line 1.
I think that it must be
= 0. (In plain text format form it is 3*(3^(2x)) - 28*3^x + 9 = 0.)
If it is so, then it is a quadratic equation relative .
For many solved problems of this type (your samples) see the lesson
- Solving exponential equations
in this site.
Also, you have this free of charge online textbook in ALGEBRA-I in this site
- ALGEBRA-I - YOUR ONLINE TEXTBOOK.
The referred lesson is the part of this online textbook under the topic "Exponential equations".
Save the link to this online textbook together with its description
Free of charge online textbook in ALGEBRA-I
https://www.algebra.com/algebra/homework/quadratic/lessons/ALGEBRA-I-YOUR-ONLINE-TEXTBOOK.lesson
to your archive and use it when it is needed.
-------------
Comment from student: No. Equation is written as in the textbook. It is a lesson not on quadratic equations but on exponential equations. Thank you for the link.
-------------
My response. Below is the plot of the function in the lft side of your 1-st line.
Plot y = 3(3^2x) - 28(3^x) + 9 =
There is NO ANY SENSE to argue with me.