CAPM

Hi, can anyone walk me through the following question? Company A has a beta of 2.20 and required rate of 16% Company B has beta of 0.4. The risk-free rate is 5%. What is Company B’s required rate? I understand that CAPM = risk-free rate + [beta x (required rate - risk-free rate)] However, I’m stumped and I can’t seem to figure out how to calculate this problem. Any help is appreciated, thank you!