how can you solve question 2 in the assignment 2 can someone please help?