How to Design MBBR and MBR Process for Sewage Treatment Plant?

How to design MBBR and MBR process for Sewage treatment plant? How to do the basic process calculation for the equalization tank, anoxic tank, aeration tank, clarifier or sedimentation tank, sludge holding tank, air requirement for aeration, RAS and WAS.