; (B) enforce compliance with such section or such rule; (C) obtain civil penalties; or (D) obtain damages, restitution, or other compensation on behalf of residents of the State. (2) Notice and intervention by FTC The attorney general of a State shall provide prior written notice of any action under paragraph (1) to the Commission and provide the Commission with a copy of the complaint in the action, except in any case in which such prior notice is not feasible, in which case the attorney general shall serve such notice immediately upon instituting such action. The Commission shall have the right— (A) to intervene in the action; (B) upon so intervening, to be heard on all matters arising therein