Hint1: identifier bits layout is different for 11 and 29 bit messages. So you can't and and invert 11-bit IDs with 29-bit IDs directly. You need to do some shifting to match bit positions
Hint2: Accepting 11bit messages when using 16 or 32bit filter, you need to ignore bits that come past the identifier.
Hint3: Why to combine all IDs to single filter, if you have at least 2 filterss. You can make one filter accepting only 11-bit messages, and 2nd filter to accept only 29bit messages.