The answer is roots to leaves.
Plants absorb water from the ground by roots. From the roots, water is transported through xylem to leaves. In the leaves, water is used together with carbon dioxide to form glucose and oxygen in the process of photosynthesis. Therefore, the path that the water take to be a part of photosynthesis is from the roots to the leaves.