## Proving problem in set theory

Prove that for each f:X -> exists Z, h:X ->Z injective and y: Z ->Y surjective, so that f= gh

Just can't figure it out. Hope the thing is understandable, not really used to translating maths =P.