Well, Squidley's profile indicates he's not a student, so I'll try to be a nice guy (this really HURTS!) and get him started.
What you want is a repeat cycle timer. Use the input to enable a Timer 1. Use the done bit or contact from Timer 1 to operate Timer 2. Use the done bit from Timer 2 to reset Timer 1 and Timer 2 and operate your output.
There are millions of ways to do this (well, at least more than one). Post some code, and include specific application and PLC model info, and you will get more help.