Newbe with trim question.
Sand the crap out of the mounting pad on the trim with 60-80 grit. Sand the back of the rusty tab with the same. Make sure the rust is gone on the surface you will apply the glue. Use Acetone or fingernail polish remover to clean. Epoxy will grab those scratches and never let go! The sooner you do them the longer they will have to cure.