We have read that a gas gets liquefied when cooled below its critical temperature `(Tc)` . Upon cooling from 500 K, the critical temperature of ammonia `(405.5 K)` will be attained first. It will get liquefied first as compared to carbon dioxide for which critical temperature `(304.15 K)` is attained on further cooling.