AMC 12A 2012 Problem 6

The sums of three whole numbers taken in pairs are 12, 17, and 19. What is the middle number?

Answer Choices
A. 4
B. 5
C. 6
D. 7
E. 8