Hey, now we're getting somewhere. That old saying about "a picture being worth a thousand words" really applies.
Since you are using foam, forget about any nailing. Adhesive is your option. Is there any thin plastic surface over the foam? If so, remove it or the adhesive won't stick.
Do you...