Airplane is a synonym of Plane. Plane is related to Flying. 
Garbage is the opposite of Prize. Prize is a synonym of Prime. 
Airplane <--Synonym--> Plane <--RelatedTo--> Flying 
Garbage <--Antonym--> Prize <--Synonym--> Prime 