A brake is a device that decelerates a moving object such as car, converting its kinetic energy into…