The house belongs to James.
If John was with James in his house (referring to James house)
Thus, your answer is It is James house.
9.5m questions
12.2m answers