This response change needs to happen for both the "rgroup" and "TGroup" variables so that both the series and the…