Charitble contribution

Hi All, I am so lost on the becker example for the charitable contribution. So the LTCG suppose to be 30% limitation, I get that 30% times AGI However, why do we compare this with 50% AGI minus other deduction?