How to Pull in Referring Account if Referring Contact Selected with Relate Field?

Was wondering how in SugarCloud one could have it be setup so when team selected a referring contact on opportunities module (relate field),  we could also have identified the referring Account that relate contact was member of ?  

Any insights are greatly appreciated -  on this specific scenario and in similar ones in general.