Answer:
(a) 750 codes
(b) 180 codes
Explanation:
The number of possible access codes is given by the number of ways to pick 3 out of 5 buttons added to the number of ways to pick 4 out of 5 buttons, in which the order matters.
(a) If a button may be repeated.:

There are 750 possible codes.
(b) If a button may not be repeated.

There are 180 possible codes.