のは難しいとわかった

found it difficult to

→ の
phrase Rare #26,240
found it difficult to Follows a verb in its plain form. の turns the action into a topic, and とわかった means “found out” or “realized.”
JA: この説明を理解するのは難しいとわかった。
EN: I found it difficult to understand this explanation.

彼の機嫌をとるのは難しいとわかった。

I found it difficult to keep him happy.

彼らは生計を立てるのは難しいとわかった。

They found it difficult to make a living.

その問題を解くのは難しいとわかった。

I found it difficult to solve that problem.

私はその本を読むのは難しいとわかった。

I found it difficult to read that book.

僕たちはそのディスコにはいるのは難しいとわかった。

We found it difficult to get into that disco.

トムは会話を続けるのは難しいとわかった。

Tom found it difficult to keep the conversation going.