Good point - I didn't catch that. I have updated the answers to the questions highlighted in yellow since he would be considered unlawfully present for his illegal entry attempt.
Regarding the other comment about being unlawfully present for more than the 180 days, I kept the answer as "No" since the only time he was in the country were those two days that he was in the detention center.
Also, what do you all think, should the "Have you ever traveled to any countries in the past five years?" be "Yes" ? No other travel other than the illegal attempt.