Vital is related to Heart. Heart is a synonym of Spirit. 
Written is related to Test. Test is the opposite of Grade. 
Vital <--RelatedTo--> Heart <--Synonym--> Spirit 
Written <--RelatedTo--> Test <--Antonym--> Grade 