Answer:
D. Electromagnetic
Step-by-step explanation:
1. A vibrating electric charge creates an EM (electromagnetic) wave
2. Transmitting energy from Sun to the Earth would require crossing the vast emptiness of space, which is a vacuum (no medium to propagate longitudinal waves). Hence, this wave is transversal. EM waves are also transversal.
3. EM waves have both an electric and magnetic component, conventionally on the y and z axes, respectively.
4. The speed of this wave does decrease as the medium becomes denser. Take light for example. Light is also an EM wave and, although it does not need a medium to propagate, it still changes its speed depending on which medium it is passing.
Hence, the wave is electromagnetic