You have first.pdf second.pdf last.pdf files to concatenate.
-
Open each PDF in Preview.app, go to View-> Thumbnails and remove unwanted pages by selecting the pages you do not want, (with shift or command to select multiple), then save it (Cmd-S) to have exactly the PDF source you need.
-
Run Automator join script in the terminal:
"/System/Library/Automator/Combine PDF Pages.action/Contents/MacOS/join" -o joined.pdf first.pdf second.pdf last.pdf