In order to start this problem we must note that at equilibrium Demand=Supply and therefore D(X)=S(X)

Equilibrium demand and price

CS

moving on to PS

you have posted similar problems now try those and see if you can follow the general procedure i have demonstrated