(a) The refractive index of a medium is n=c/v, so v=c/n.
For red light:
vred=1.5133×108=1.98×108 m/s
For violet light:
vviolet=1.5323×108=1.96×108 m/s
(b) The two speeds are different, and that is the whole cause of dispersion. Violet light travels more slowly in this glass than red light does, so the glass has a higher refractive index for violet.
A higher refractive index means a greater bending at each surface of the prism, so violet is deviated most and red least, with the remaining colours ranged in between. White light, being a mixture of all of them, therefore leaves the prism fanned out into a spectrum.
Notice how small the difference in speed is — about one per cent — yet it is enough, after bending at two surfaces, to separate the colours visibly. It is also why a rectangular glass slab does not produce a spectrum: its two surfaces are parallel, so the spreading at the first is undone at the second.