A piece of wood measured 158 centimeters. Another piece of wood measured 118 centimeters. When an equal length was cut from each piece, the longer piece was 2 times the length of the other. How many centimeters were cut from each piece?

158-x = 2(118-x)