Was vs had?

Can you answer this question?