The answer to part a) is 10.
The details for part b), is that if you have four different alleles, designated A1, A2, A3 and A4, the ten possible genotype combinations are A1/A1, A1/A2, A1/A3, A1/A4, A2/A2, A2/A3, A2/A4, A3/A3, A3/A4 and A4/A4.
Note: Not by coincidence, the number of genotypes...