Coding challenge

If $x$ and $y$ are positive integers, write some code to find values of $x$ and $y$ so that $2^x3^y=1296$, and to find $x+y$. (Ref: AMC 12B, 2/25/2004.)

Type your code here:


Lua reference

See your results here: