A student is walking on the beach and steps on a piece of glass with her foot. Stepping on the glass sends electrical signals from the foot nerves to the brain. The glass also creates a cut on her foot that allows pathogens to enter and infect the area. Which two body systems are best working together in this scenario?