So "twice"(2) and "twice squared" (x^2^2) = 2^2^2 = 16
Then you can read "it's twice squared" as (the first use of twice) + ("twice squared")
The 'it' reference can change. The first 'it' is referencing the difficulty. The second 'it' is referencing the first 'twice', creating the option that 'it' is further "twice squared". Not the most elegant interpretation but a possible interpretation.
Learning to avoiding this vague language is why math majors should still take the occasional poetry class.
Think of the sentence, "A man, twice fooled, shall not be fooled again."
Or “the difficulty squared and squared again”: (x^2)^2 or x^4.
The GP is asking why x == 2 in the second example rather than just “the difficulty”. English interpretation doesn’t explain that.