What kind of camera are you using? If you look on your lens it will say something like f/4-5.6. This is the largest aperture that your lens is capable of at certain points of zoom. By using a small aperture(large f/#, like 16) you will be able to focus on the whole team instead of having a few people in focus and others not in focus. This is called depth of field or DOF. You want a large depth of field when shooting a team picture. On your cameras setting you should be able to adjust the aperture to suit your needs.