Combine many uvs into 1 uv that share the same seams


is there a button that combines these 2 uv islands into 1 that share the same seam , i thought it would be the match and stitch under trasnsform and does it get rid of seam when they combine the 2 uvs into 1 or im not under the right options thanks