How to move 2d rectangle so centerpoints on edge touches another rectangle's center

I want to make two coplanar rectangles and then move one so that the center of its top line touches the center of the bottom line of another rectangle of a different size. I’m sure this is possible — how do you do it?

Hello! If you wish to move modeling elements between known points (instead of a given distance), please use the translate tool: