Key words to help you get the answer of 9 are in the word problem.
“How many times must 2 be used as a FACTOR…”
This means that we are multiply 2 by 2 by 2 until we get to 512, or we’re putting 2 to a certain power (9) until we get to the number 512.
An equation you could use is
2^9=512