A heavy flywheel in the shape of a solid cylinder of mass 50kg and radius 0.4m is rotating at 100rad/s. A brake pad presses against the rim with a normal force of 200N. The coefficient of kinetic friction between the pad and the rim is 0.5. How many seconds does it take for the flywheel to come to rest?