Pokémon: when a teammate covers one weakness
Start with Gyarados and Excadrill. In the Electric row, Gyarados takes 4× damage and Excadrill takes 0×. If you expect an Electric attack, Excadrill gives you an option to switch. Then check the Water row: Excadrill takes 2×, while Gyarados takes 0.5×. The second row shows the trade you make when bringing Excadrill in.
Try the same exercise with Magnezone. In the Ground row, Magnezone takes 4× and Gyarados takes 0×. Compare both pairs against the attacks you actually expect. These results cover defensive typing. In a battle, check the opponent’s moves and any ability, item or rule that changes the matchup.