Explanations:
In the above sentence 'to' will be used in the blank space because 'take to' is phrasal verb which means "to start liking somebody/something" gives appropriate meaning. Other options give different meaning. Correct Sentence- Ram and shyam have taken to each other.