AMC8 2011 Problem 17

Let w, x, y, and z be whole numbers. If 2^{w} \cdot 3^{x} \cdot 5^{y} \cdot 7^{z}=588, then what does 2 w+3 x+5 y+7 z equal?

Answer Choices
A. 21
B. 25
C. 27
D. 35
E. 56