Mattyrom,
Steve's answer is spot on, do a search for 'flip flop' and you will get plenty of ways on how to do what you ask.
This is really a basic question, no disrespect there, as you have stated that you are at school, but have you really thought about how you go about solving the problem for yourself?
Read all the posts that your search turns up and then, hopefully, you will understand how the answer to your question works and in the future you will be able to come up with your own solution to these problems.
This is a great place to learn about PLC's, but not a place to get your homework done for you.
HNC students you have been warned!!
Paul