How to pull data from a linked DOCTYPE

Hi. I have a custom DOCTYPE that i have created that allows you so select a company from the company DOCTYPE. By selecting the company i would like to also be able to pull the linked address from the address DOCTYPE. How can I go about doing that.

there are three doctype involved here which are company, address and “custom doctype”

i have a form in the custom doctype, after selecting the company i want the linked address in the address doctype to be pulled automatically and displayed somehow

the image below show the address record and the linkage to the company.