You should do some more research. The only way two pilots can log PIC for the ENTIRE flight is if one is a CFI. Safety pilot time can only be logged while the other pilot is under the hood, so the safety pilot cannot log the time that the aircraft is on the ground.