If I have $$\begin{align} X &= \{a, b, c, d, e\} \\ Y &= \{g, h, i\}\\ Z &= \{j, k, l, m, n, o \}\\ \end{align}$$ how do I write an onto function from $X$ to $Y$? Also, how do I write an one to one function from $X$ to $Z$?
Am I right to say that for the one to one function, $X$ to $Z = \{(a,j), (b,k), (c,l), (d,m), (e,n)\}$?
As for the onto function, I have to write out $4! = 24$?
Edit: onto function from $X$ to $Y = \{(a,g),(b,h), (c, i), (d,g), (e, h)\}$ something like this? But as for the one to one function. There's $5$ elements in $X$ and $6$ elements in $Z$, so it's ok leave one out?