Sympathetic cooling of protons and antiprotons with a common endcap Penning trap