A cord is cut into two pieces of different lengths. The sum of the two lengths is 6 centimeters, and the difference between the two lengths is 4 centimeters. Find the lengths of the two pieces of cord.