Problem solving Q

image
image