Let the function g be defined as g(x)=2a(x−a)2+50, where a is a constant. If g(a)=5, what is the value of a?
g
5
10
16
21