If the equation Ax+B=Cx+D has infinitely many solutions, where A,B,C, and D are constants, which of the following statements must be true?
A=C only
B=D only
A=C and B=D
A=C and B=D