Please consult
Prison map.
To solve quest about the dead guy you need to go to room 6. A dialogue will trigger.
If you're talking about door 40, don't worry, you'll get back there later.
You will be able to return to the prison, but only much, much later.