For the second problem, (b), you can use the permutation formula. This gives the number of ways of arranging n objects if r elements are selected. In this case, order is important. It is given by:
nPr = n!/(n-r)!
For this problem, n = 5, and r = 2
Thus, 5P2 = 5!/(5-2)!
= (5 x 4 x 3 x 2 x 1)/(3 x 2 x 1)
= 20 ways.