Group A have active immunity, while Group B have passive immunity
Active immunity is produced by one's own body which results from the production of antibodies by the immune system in response to the presence of an antigen, passive immunity is given externally by medicine (e.g. antibiotics).