Which form is correct?

That would be a perfect response if someone was/were to ask the question.

This in the subjunctive mood, so "were" is the correct verb.

http://englishplus.com/grammar/00000031.htm