..and even then, only one can log "In command", the other must log co=pilot hours. In addition, I assume in this context that they both have a rating for this aircraft.
I suspect the operative word in the original post is "passenger". If they are a passenger, then no hours can be logged.
Cheers
Whirls