$(x,y,z) = (3a, 2b , z)$ is a solution when
$a^2 + b^2 = 2z^2$
solution of $a^2 + b^2 = 2z^2$
is given by
$ (a,b,z) = (\pm(m^2-n^2-2mn),\,\pm(m^2-n^2+2mn) \,\pm(m^2+n^2))$
as per http://mathhelpboards.com/challenge-questions-puzzles-28/3-consecutive-terms-ap-perfect-square-8701.htmlso one set of solution
$(x,y,z) = (3a, 2b , z) = (\pm3(m^2-n^2-2mn),\,\pm2 (m^2-n^2+2mn), \,\pm(m^2+n^2)))$
2nd set is
$(x,y,z) = (3b, 2a , z) = (\pm3(m^2-n^2+2mn),\,\pm2 (m^2-n^2-2mn), \,\pm(m^2+n^2)))$
as a and b are interchangeable
edit: one can see that interchanging m and n both the 1st and second sets are same.
so solution is
$(x,y,z) = (3a, 2b , z) = (\pm3(m^2-n^2-2mn),\,\pm2 (m^2-n^2+2mn), \,\pm(m^2+n^2)))$