There is a number a, which can be written as xyz in base 9 and zyx in base 6, for some positive integer x,y,z. Find x+y+z.
Details and Assumption
xyz represents reading the digits together, instead of multiplying them out. For example, xyz9=81x+9y+z and zyx6=36z+6y+x.