The multipliers of the two types multiply. A move that deals 2x to both gives 4x, one that deals 2x to one and 1/2x to the other gives 1x, and an immunity in either type zeroes the damage. That is why Fire/Flying takes 4x from Rock and 0x from Ground.