Tom måtte til slutt bite i det sure eple og ta ansvar for sine handlinger.

it should be “eplet” and not “eple” since there is “det” in front of it.