Thirty Eight.

"Oh shit!" Rishio cursed as the wall closed in even closer that yey had to stand with yey'r back against a wall in order to fit in the enclosed space. Okay, maybe yey was not the genius yey thought yey was seeing how badly yey was doing, and yey was only at the fourth door. The second and third doors' riddles were fairly easy to solve, this made yey'r keep up with yey'r assigned time but yey soon discovered that the doors' distance was further and further from each other, plus at each door, the chances given to answer the riddle kept on decreasing by one. At the second door yey had six chances, at the third door yey had five and now yey just had four, and having already used up two yey was panicking.