A: What did John do last night?
B: He danced at Mary's party.
*Explanation*
A: The sentence is in the past simple tense because of the word 'last night'. The correct form of the verb 'do' in the past simple tense is 'did'. Since it is a question, we use the auxiliary verb 'did' before the subject 'John'. The main verb 'do' remains in its base form.
B: The sentence is in the past simple tense. The correct form of the verb 'dance' in the past simple tense is 'danced'. We add '-ed' to the base form of the verb.