Making sure that faces have the same dimensions
I went with @moonboots answer (all glory to him).


Delete the group of faces that A is composed of
Duplicate the group of faces that B is composed of
Snap that duplicate at A's position