Solve p39