When electric current goes through the electromagnets they create the same magnetic field as the permanent magnets surrounding them.
(electric current; goes; through the electromagnets) (they; create; the same magnetic field as the permanent magnets) (the permanent magnets; surrounding; them)
electric current they the permanent magnets
goes create surrounding
through the electromagnets
the same magnetic field as the permanent magnets
them