For electrolysis to work, the metal compound must be in the state of a (solid / liquid / gas).
(electrolysis; to work; ) (the metal compound; must be; in the state of a (solid / liquid / gas)
electrolysis the metal compound
to work must be
in the state of a (solid / liquid / gas