; (2) enforce compliance with such regulation; (3) obtain damages, restitution, or other compensation on behalf of residents of the State; or (4) obtain such other legal and equitable relief as the court may consider to be appropriate. (b) Notice Before filing an action under this section, the attorney general, official, or agency of the State involved shall provide to the Commission a written notice of such action and a copy of the complaint for such action. If the attorney general, official, or agency determines that it is not feasible to provide the notice described in this subsection before the filing of the action, the attorney general, official, or agency shall provide written notice of the action and a copy of the complaint to the Commission immediately upon the filing of the action. (c) Authority of Commission (1) In general On receiving notice under subsection (b) of an action under this section, the Commission shall have the right— (A) to intervene in the action; (B) upon so intervening, to be heard on all matters arising therein