In this note, we give the necessary and sufficient conditions for the existence of the solution and obtain the general solution to the equation AXB = B = BXA. The results improve the recent results by Vosough (2017).