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

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