How antigen-presenting cells and different types of T and B cells work together to produce an effective immune response.