を見つけるのに

in finding

→ を
phrase Rare #28,911
in finding Here, のに means “in order to” or “in the process of,” not the concessive “although.” It follows a verb in the plain form and is often used with expressions such as 苦労する (to have difficulty) or 役立つ (to be useful).
JA: 新しいアパートを見つけるのに時間がかかった。
EN: It took time to find a new apartment.

正しい神経を見つけるのにだいぶあなたはエンジニアなの

You must be quite the engineer to find the right nerve, huh?

— バジュランギおじさんと、小さな迷子 (2015)

やっぱりこの服を見つけるのにすごく苦労した

I really had a hard time finding these clothes after all.

— 8 1/2 (1963)

バスの停留所を見つけるのに大いに苦労した

I had a great deal of trouble finding the bus stop.

彼は仕事を見つけるのに思ったほど苦労しなかった

He didn't have as much trouble finding a job as he expected.