What was the connection between the Three-Fifths Compromise and taxes?

A) Three out of every five slaves were taxed.
B) Three-fiths of all slaves were counted to figure how much states owed the federal government in taxes
C) Three out of every five slaves were exempt from taxes
D) Three-fifths of all slaves were counted to figure how much the federal government owed states in taxes