Ah, that is different to how I read your original post and would just result in three normal two-way circuits.(I will be using a 3G light switch by the door to operate other lights in the room, only one switch would be available as an M)
I took that to mean one switch to do both A & B.I also want a master switch on entry to the room, to turn both lights on or off (2 way)