Re-position or re-scale a cube using positions of other meshes

Please, do not duplicate the post, I will close the other one as a dup. How to re-position or re-scale a cube using positions of other meshes - #5 by pro