Mean is a synonym of Dirty. you are likely to find Dirty in/at/on Bed. you are likely to find Magazine in/at/on Bed. 
Heart is a synonym of Meaning. Meaning is related to Muslim. Muslim is related to Religion. Religion is related to Theology. 
Mean <--Synonym--> Dirty --AtLocation--> Bed <--AtLocation-- Magazine 
Heart <--Synonym--> Meaning <--RelatedTo--> Muslim <--RelatedTo--> Religion <--RelatedTo--> Theology 