TASK DEFINITION: In this task, you are given a question, and your task is to predict the context of the question. We assume that someone named X asked the question from Y. The context of the question means the previous situation that led X to ask this question.
PROBLEM: Did you have a good journey?

SOLUTION: Y has just travelled from a different city to meet X.

PROBLEM: Are you going to live in this flat a long time?

SOLUTION: Y has just told X that he/she is thinking of buying a flat in New York.

PROBLEM: Can you afford the flat?

SOLUTION:
Y has just told X that he/she is thinking of buying a flat in New York.