In the diagram, each of the five boxes is to contain a number. Each number in a shaded box must be the average of the number in the box to the left of it and the number in the box to the right of it. What is the value of x?

Answer Choices
A. 28
B. 30
C. 31
D. 32
E. 34