The table gives the various levels of output (Q) and its corresponding total cost of…