Deductions & credits

Thank you! How would anyone figure this out on their own?