I have to do this for math homework and for the life of me can't figure it out. please help!