expression
what's what; heads or tails
Used to express confusion when one cannot make sense of a situation. Often followed by わからない or similar phrases.
説明が複雑すぎて、何が何だかわからなかった。
The explanation was too complicated; I couldn't make heads or tails of it.
突然のことで、何が何だかさっぱりだ。
It happened so suddenly that I have no idea what's going on.