The movement which causes 'X' (roots) to grow downwards is known as geotropism (or gravitropism), which is the growth of plant parts in response to gravity. In this case, the roots grow downwards due to gravity.
The movement which causes 'Y' (stem) to grow upwards is known as phototropism, which is the growth of plant parts in response to light. In this case, the stem grows upwards towards the light source.