Ive been on this question for a while as homework
and im stuck
help?