The most obvious solution was to use a pulley, with one end of a piece of string fixed to the pulley, and the other to the electromagnet.
(The most obvious solution; was; to use a pulley, with one end of a piece of string) (string; fixed; to the pulley, and the other to the electromagnet)
The most obvious solution string
was fixed
to use a pulley, with one end of a piece of string
to the pulley, and the other to the electromagnet