In this case, they are generally supposed to follow the same steps of bowing twice, clapping hands twice, and bowing once, but following the instructions of the Shinto priest is more important.
この場合も一般には再拝二拍手一拝であるが、神職の指示に従う。