P6-18B Solution