How can i answer to this assignment for both 2 question?

How can i answer to this assignment for both 2 question?