A tax is a compulsory financial charge or some other type of levy imposed on a taxpayer…