i want to sleep. (+20 points lol) question in image

Answer:
a. 3
b. -10
Hope this helps! I told ya how to do it in comments.
(I choose to write this here because one of the previous answers were deleted, SO i was capable of submitting the answer!)