Well, you need to make an array[].
The array will store two pieces of information: servo position, and time to hold that position.
So you need to use timers to record how long you push a button.
Look into these things a bit, and if you need more hints, feel free to ask for more help.