Deductions & credits

I am in a similar situation, however the two replies differ and I don’t know what to do.  Which one is right? Thank you.