To clear to old before passing it on, open the Settings app and tap on General (left hand menu). Scroll down and tap on settings, then tap on Erase All Content and Settings.
If you have been synching the iPad to iTunes on a computer, you should also have backed it up. If you havn't backed it, you will want to do so before clearing the settings and use the back up to set up your new iPad.
You may dinf soem of the articles here useful: