Inversion form - verb + sub
when we need to write inversion, we have to switch the position of verb and subject. If verb is verb to be, it is no problem we put verb to be in front of the subject.
If verb to do, we have to change do,did,does according to the tense.
That is all i know
If there is any mistake, everyone can correct it!!!