How to extend a page(base template) in another page for custom pages

I created two custom pages one for the page/body content and another for the base template like header and footer now how can page/body content page can extend the base template
or how can i use {% extends ‘base_template’ %} in custom pages