Question

A person bought a safe which can be unlocked by entering a 2-digit
secret code. After some time, he forgot the secret code of his safe.
However, he remembers some numbers that could be the secret code.
The secret code is one among the following numbers.
5 17 29 22 11 26 27 35 39 41

Let us give him some clues to find the secret code of his safe.
It is greater than 20
It is not a prime number
It is smaller than 40
It has 13 as one of its factors
It is an odd number.
It has only 4 factors
The secret code is ____________________

1. 39 number is the secret code as the unlock code for the safe.
According to the statement
we have given that  a some numbers as a code and we have to find the correct code after applying the given conditions.
So, For this purpose
The given number set is
5 17 29 22 11 26 27 35 39 41
So,
A. One condition : It is an odd number
so, the number set become
5 17 29 11 27 35 39 41
And
B. Second condition : It is greater than 20
so, the number set become
29 27 35 39 41
And
C. Third condition : It is smaller than 40
so, the number set become
29 27 35 39
And
D. Fourth condition : It is not a prime number
so, the number set become
27 35 39
And
E. Fifth condition : It has 13 as one of its factors
so, the number set become
39.
So, 39 number is the secret code as the unlock code for the safe.