AMC 12B 2004 Problem 22

The square

\begin{array}{|c|c|c|} \hline 50 & b & c \\ \hline d & e & f \\ \hline g & h& 2 \\ \hline \end{array}

is a multiplicative magic square. That is, the product of the numbers in each row, column, and diagonal is the same. If all the entries are positive integers, what is the sum of the possible values of g ?

Answer Choices
A. 10
B. 25
C. 35
D. 62
E. 136