Two conducting charged spheres X and Y having unequal charges are connected by the wire. Which of the following is true?