The correct option is A Behind the planets
Shadows are formed away from the light source. In this case, the sunlight is unable to pass through the planets because they are opaque.
Since the sun is in front of the planets, the absence of light behind the planets results in the formation of shadow.
So shadow if the planets are formed behind it.