よいのか

what ... should do

→ 良い
phrase Uncommon #16,209
what ... should do Used in embedded questions about what is appropriate or okay to do. The exact meaning depends on the words before it.
JA: 次に何をすればよいのか分かりません。
EN: I don't know what I should do next.

怒ってよいのか笑ってよいのかわからなかった。

I didn't know whether to be angry or laugh.

私は次に何をしてよいのか途方に暮れていた。

I was at a loss as to what to do next.

私は受けてよいのか断るのがよいのか分からない。

I don't know whether I should accept it or turn it down.

運転手はどちらの道を行ったらよいのかと私に尋ねた。

The driver asked me which way he should go.

彼女は何をしてよいのか途方に暮れた。

She was at a loss as to what to do.

私は人込みの銀座でどうしてよいのか全く分からなかった。

I had absolutely no idea what to do in crowded Ginza.

よいのか?

Is that okay?

— The Garden of Sinners: Paradox Spiral (2008)

私はどうお金に手をつけてよいのか途方にくれた。

I had no idea what to do with the money.