Controling the speed of the fps?

Hi, does anyone know how to control the speed of the fps?
Say I have a total of 20 frames, and for the first 10 frames, I want them to be 15fps and for frame 11-20, I want them to be 4 fps.
Thanks for the help.