(a) By the PMF for the binomial distribution, the desired probability is C(9,3) (0.48)3 (1-0.48)6, or about 18.366%.
(b) We require the probability that at most 5 of the 9 customers will elect to purchase a dog. By the PMF for the binomial distribution. this is
C(9,0)(0.48)0(1-0.48)9
+ C(9,1)(0.48)1(1-0.48)8
+ C(9,2)(0.48)2(1-0.48)7
+C(9,3)(0.48)3 (1-0.48)6
+C(9,4)(0.48)4(1-0.48)5
+C(9,5)(0.48)5(1-0.48)4
= 78.386%
Hope this helps!