Each team of three or four students had a "baggie" of materials that contained one magnet and a variety of test objects.
(Each team of three or four students; had; a "baggie" of materials) (materials; contained; one magnet and a variety of test objects)
Each team of three or four students materials
had contained
a "baggie" of materials
one magnet and a variety of test objects