The riddle is describing a W-2 form. A W-2 is a tax form you receive around January for each job where you were an employee. It shows how much you earned that year and how much was withheld in taxes, exactly matching the clues in your sentence.