If the end point is Y, then there should be a dot at the Y and an arrow at the X.
=^._.^=
D, a ray must have a dot on one side, and an arrow on the other, which means it goes on forever. Knowing that the endpoint must be Y, the dot must be Y. Since D is the only one that satisfies the question, D is the right answer