Which part of this is giving you trouble? Break your problem down into (much) smaller steps, and take those steps one at a time. Which step are you stuck on?