Philip tells his mother that the secret number he is thinking of is divisible by 6 and tells his father that it is divisible by 3. If Philip is telling the truth to both of his parents, what is the smallest secret number that Philip could be thinking of?