I walked in the garden, _____ Tom and Jim were tying a sign onto one of the trees.
A. which B. when C. where D. that