Achieve is a synonym of Do. Do is related to Swim. Person wants (to) Swim. 
Legislation is related to Law. 
Achieve <--Synonym--> Do <--RelatedTo--> Swim <--Desires-- Person 
Legislation <--RelatedTo--> Law 