Green and Blue Screen removal

Hello, I am new to this forum and new to fusion.
Recently I shot some footage of actors rehersals, and it turned out that as well as the green screen I suddenly realised that there was a blue carpet. Yes I know
Anyway my question is what is best way to key out both colours?
I was thinking of adding two copies of the footage and running primatte on each to remove the different colour then some how merging???
I really do not know what I am doing and will be very grateful for any suggestions, Nothing major as I am learning.
Many thanks in advance
tadgey
Recently I shot some footage of actors rehersals, and it turned out that as well as the green screen I suddenly realised that there was a blue carpet. Yes I know

Anyway my question is what is best way to key out both colours?
I was thinking of adding two copies of the footage and running primatte on each to remove the different colour then some how merging???
I really do not know what I am doing and will be very grateful for any suggestions, Nothing major as I am learning.
Many thanks in advance
tadgey