Waves can be seen in many different locations of our oceans and can be many different sizes at any given time. What affects the size of waves?

A:The salinity,The density,and the pressure of the water
B:The tides,currents,and salinity of the water
C:The distance form shore and how any boats are travlling across the water
D:The speed,duration,and distance of the wind

D: The speed, duration, and distance of the wind.