GDP is a measure of the market value of all the goods and services produced…