(1) He remained in Germany for three years before moving back to Japan with his family .
(2) He remained in Japan for three years before moving with his family back to Germany .

Do these two sentences mean the same thing?

Available options:
(A). no
(B). yes
(A).