PERFECT working would be something like:
(a) Number of ways = 5! x 4!
= 2880
(b) Number of ways = 4! x 3! x 3!
= 864
In other words, make sure your answers are labelled clearly using the nomenclature of the question (i.e. (i), (ii), (a), (b), etc). State clearly and briefly what you're trying...