They tune the second piano to first though don't they?
I don't think there is a good solution for out-of-tune piano with guitar. If the guitar is in tune, it's going to hit sour notes with the piano. If you tune the open guitar strings to the piano, the guitar is out-of-tune with itself and when other notes are played on the guitar, shortening the string, it's going to hit sour notes against the piano. Even if you tried to tune the guitar to a certain key center with the piano... The strings will still be shortened for some notes. No luck any direction.