Kiddie tax and capital gain

My child has unearned income and I m trying to understand how taxes is calculated for capital gains if the total income exceed 2500 as capital gains are taxes differently than dividends 

 

for example 

800 dividend

2000 long term capital gain.


How would the tax be calculated in this scenario?