The correct answer is: B. Ordered

The sentence is in the past tense, so we need to use a past tense verb. The other options are not in the past tense.

  • Were ordering is in the past progressive tense, which is used to describe an action that was happening at a specific time in the past. In this case, it would mean that we were in the process of ordering our food when I arrived.
  • Had ordered is in the past perfect tense, which is used to describe an action that was completed before a specific time in the past. In this case, it would mean that we had already ordered our food before I arrived.
  • Would order is in the future tense, which is used to describe an action that will happen in the future. In this case, it would mean that we were planning to order our food after I arrived.

Therefore, the only option that makes sense is B. Ordered.