Word Problems K12Logic Puzzle.

Many years ago a king of a North European country decided to establish which is more dangerous for health: tea or coffee.
He ordered that one prisoner should only be given coffee, and that another prisoner should only be given tea.

What do you think? Who died first?