Thank you, Chez.
I agree that "to reach" is the better choice. However, I still have one similar question.
What do you think of the sentence below?
Martin is trying to find the most efficient way of reaching his exercise goals.
I was told that with "the" in the sentence, the underlined part is considered to be wrong. It should be "Martin is trying to find the most efficient way to reach his exercise goals."