In how many ways can 10 identical blankets be given to 3 beggars such that each receives at most 4 blankets?

a) 36
b) 39
c) 42
d) 45