Deductions & credits

Is this a homework or exam question?