When light passes through a prism what causes the light to be refracted?

A) the light is reflected inside the prism and they all come out at different times making the colors visible

B)the prism forces the light to separate due to its composition

C) the light is bend around the prism because it acts like a barrier

D) when the light enters a new medium it causes a change in speed