as long as the volume of the box after mixing remains the same and for an ideal gas, the change in entropy is zero. But, if the volume of the third box is larger then ofcourse, entropy increases...
note: Referred from "Entropy and the second law, interpretations and mis-interpretations " Ariah...