Main Rectangle from Sub-Rectangles

Is it posible to create a new rectangle from 2 rectangles, in other words, to keep only the borders of the area created by the two Rec’s?

Make planar surface Boundary Surface then join surface Brep Join then extract edges of theses surfaces.

Thanks, it worked.