A hospital receives 2/3 of its flu vaccine shipments from Company A and the remainder from Company B. Each shipment contains a very large number of vaccine vials. For Company A’s shipments, 10% of the vials are ineffective, while for Company B’s shipments, 2% of the vials are ineffective.

(a) In a sample of 30 randomly selected vials from Company A, what is the expected number of ineffective vials? Motivate your answer fully.

(b) The hospital tests 30 randomly selected vials from a shipment and finds that exactly one vial is ineffective. What is the probability that this shipment came from Company B?

After checking all the conditions, this is what I've come up with for part (a):

p(a)=P{x=a} = (30Ca)(0.10)^a(0.90)^(30-a) if a = 0,1,2,...,30

0 otherwise

I'd really appreciate any help you guys could offer. I'm a little confused here.