Any two vectors in R2 pointing in the same direction that are equal in magnitude AND parallel are equal.
They said AB and OP have the same length (this means equal in magnitude)
They also said AB is parallel to OP.
Therefore vector AB = vector OP.
But vector AB = B - A = 6+3i.
But OP = P - O = 6+3i
But O = 0 + 0i (it's the origin), so therefore P = 6+3i.
To get Q, we rotate vector OP by 90 degrees ie: multiply by cis(90), which is the same thing as multiplying by i.
So therefore to get OQ, it's just i x OP = -3+6i.