hi ...
have a look
here where you should find some useful information and start to dive into the problem ... since it sounds like a home- or coursework question i think you first have a look for yourself and then ask specific questions where you would have problems ...
kind regards