In mathematics, a percentage is a number or ratio expressed as a fraction of 100. A percentage is used to…