Just starting with discrete maths.
Set $A = \{e,f,g\}$ and Set $B = \{2,5\}$
Q1. Give an example of a function $\space f: B \rightarrow A$ that is not 1-1.
I am not used to having the elements of the set given to me. I am thinking maybe something along the lines of:
$$f(2) = f(5) = e$$
Q2. Give an example of $\space g: P(B) \rightarrow A $ that is onto.
I don't know how to tackle this one.
Juan
Your first answer is fine. For 2, note that you are going from the power set of B, not from B itself. How many elements are in that power set? Now you just need to make sure that at least one of them goes to each element in A.