You can calculate the acceleration in the first case using the standard formula involving initial speed, final speed, acceleration and distance.
Substitute for acceleration in standard formula involving initial speed, final speed, acceleration and time to calculate the time taken to stop.
Use same acceleration value to calculate time to slow from 50 kph to 30 kph.
I can't see any need to use the coefficient of friction other than to be aware that it puts an upper limit on the acceleration.