Four students: Emma, Jack, Mia, and Oliver, are planning a group project. They need to form a team of three students following these rules:
- Emma, Jack, and Oliver cannot all be on the team, but at least one of them must be.
- Mia and Jack cannot both be on the team.
- Oliver can only be on the team if Mia is.