IRS publication 575 explains how it works

form 1040  is used with entries in box5a and 5b