Answer
$y=3\cdot2^x$
Work Step by Step
Let $y=ab^x$.
Then our equations are: $6=ab^1$ and $24=ab^3$.
If we divide the second equation by the first one we get: $4=b^2$. Thus, because $b$ is positive: $b=2$. Then $6=a\cdot2^1=2a\\a=3$.
Thus $y=3\cdot2^x$