Picture 18 sweets packed as 3 bags of 6. The same pile could be described as 2 bags of 9, or as 10+8. The amount is fixed; only the description changes, and each description answers a different question, such as how many are in each bag or how to share between two people. Algebra lets you redescribe an amount in just this way. 6x+9 and 3(2x+3) name the same amount for every x: at x=1 both give 15, and at x=4 both give 33. The second form makes it obvious that the amount is always a multiple of 3.
Each rewriting move is a rule that holds for all numbers: the distributive property a(b+c)=ab+ac, combining like terms such as 4x+2x=6x, and identities like x2−a2=(x+a)(x−a). Because the rules always hold, the new form is guaranteed to equal the old one. A quick test catches slips: put one value, say x=2, into both forms. If the results differ, a step changed the value, not just the form.
Rewriting is not solving. The statement 6x+9=3(2x+3) is true for every x, while the equation 6x+9=0 is true for only one, x=−23. When an equals sign joins two forms of the same expression, it means "equal for every x", and there is no value to find.
Think of it like this. Rewriting an expression is like changing a $20 note into two $10 notes: the money in your pocket is the same, but now you can split it with a friend. You pick the form that suits the job, and you never accept change that comes up short.
Core idea. Rewriting expressions swaps one form for an equal form to expose information the old form hid.