It is given x,y,z are in AP.
so we know that from the property of AP,
2y=(x+z)
or,y=(x+z)/2
now we know that if a,b,c are in GP then,
$b^{2}$=ac
now it is given ,$a^{x},a^{y},a^{z}$
now we put the value of y in $a^{y}$ =$a^{(x+z)/2}$
now multiply $a^{x} ,a^{z}$ we get $a^{x+z}$
now if we compare it with the GP form we get ,
$(a^{^{y}})^{2}$=$a^{x+z}$
so $(a^{^{y}})^{2}$ =$a^{x} .a^{z}$
so it is in G.P.