Question 1&2 need help for it

Answer:
For question 1 the answer is 2
For question 2 the answer is 4
Explanation: