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:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: