# Double threat

**Logic**Level 4

Suppose you are in a dungeon. There are 50 doors numbered 1 to 50. Only one of them leads you out of the dungeon but behind each of the other 49 is an evil fire-breathing dragon. The doors are watched over by one guard whom you can only ask yes/no questions to determine the correct door.

But here's a catch: every time you ask a question, the guard, who has 10 children (9 boys and a girl), will randomly write the name of one of his 10 children. If he writes any of his son's names, you survive. But should he write his daughter's name, an alarm will ring and all the dragons will break through the doors.

What is your chance of survival? Give your answer as a decimal between 0 and 1.

**Assumptions**

Encountering a dragon means certain death.

The guard always tells the truth.

You optimise your strategy to maximise your chance of survival.