Here's what I would do:
If you apply a greenscreen key, it will automatically only affect the green area, i.e. the table. Apply a second key for the bluescreen, to remove that. Use garbage mattes to remove any extraneous bits that are beyond the keys. Or am I not understanding? Its always very difficult to give keying advice without seeing what we are talking about. If I am not understanding you here, perhaps you can upload a brief clip of the footage and give us a link, or even a single frame, before any keys are applied, so we can see what you are working with. www.imageshack.us
will host images for free if you don't have webspace.
Keying automatically only works with a certain portion of the footage, based on the color data contained therein. that's what keying is. all keys are reversible, so they can either be used to remove or retain the color they are set up to affect. Garbage mattes likewise can be used to either retain or remove portions of the screen, but based on a shape that you draw in.