The table shows the speed of sound in three states of matter.

Material:
Air
water
glass

Speed of sound (meters/second) :
330
1,500
5,100

What happens to the speed of sound as it travels through a gas and into a solid?
Type Answer HERE:
A. The speed increases.
B. The speed decreases.
C. The speed increases and then decreases.
D. The speed decreases and then increases.

D. The speed decreases and then increases.