To find out the answer, you first need to know how many apples you have. So since you put 4 apples in 4 drawers, we just multiply 4×4 to get our answer so, 4×4= 16, So you have 16 apples. To find out how many you gave your friend, you just subtract 24 - 16 = 8, So your friend got 8 apples.
The answer is D. Because you have 8 left after you put 4 apples in each of the 4 drawers. You used 16 apples for the drawers so you have 8 left for your friends.
Hope this helped=)