On an island, there are 7 natives who know mathematics and physics, 6 natives who know physics and chemistry, 3 natives who know chemistry and mathematics, and 4 natives who know physics and biology. How many ways can a team of three people be formed such that together they know at least three subjects out of the four (mathematics, physics, chemistry, and biology)?