Lewis is trapped in a room with doors. He selects a door uniformly at random. Two of the doors have paths of lengths and miles that lead to freedom. The other two doors have paths of lengths and miles that lead back to the room Lewis is currently in. If Lewis selects a door uniformly at random in each step, find the expected amount of miles that he travels before reaching freedom?