The demand and supply functions of commodity x are given as follows: Qd = 20-…