So the higher frequency light is slowed down by the glass more than the lower frequency light and as the light hits the prism at an angle, this makes it bend and you end up with a rainbow of colours.
(the light; hits; the prism; L:at an angle) (you; end up; with a rainbow of colours)
the light you
hits end up
the prism L:at an angle
with a rainbow of colours