Write out all functions $f: \{1,2,3\} \to \{a,b\}$ (using two-line notation).
How many functions are there?
How many are injective?
How many are surjective?
How many are bijective?