Hello, I have a question that I not sure how to proceed on:

Let X be a nonempty set and let be a function such that .

Show that if f is onto then .

I started by saying:

Suppose f is onto. Then for each there exists at least one such that .

And then I can't think what to do next. The previous question which was where I got to suppose f was one-to-one seemed much easier!