Turn a word problem into an equation, then solve it. Four small steps.
The problem says the length is 6 cm longer than the width. "Longer than" just means add. So we take the width and add 6.
So the width is x = 6.9 cm. Let's sanity-check it: a quick check builds confidence the answer is right.
Width = 6.9 cm, length = 12.9 cm. Land the bar on the green line!
The whole trick: turn words into algebra, shape it into "= 0", then let the quadratic formula do the heavy lifting.