Consumer Surplus is a fundamental concept in microeconomics that explains the economic benefit consumers receive when they purchase goods and…