An alternative approach is to size your bet to maximize your expected utility, which is assumed to be given by a function $u(w)$ of your total wealth $w$. This could be a better approach than using the Kelly criterion, because the Kelly fraction gives the amount to bet if you want to maximize your long-term growth rate, assuming that you will bet a large number of times, but in this case you are told that you only get one chance to bet.
If you bet a fraction $x$ of your bankroll, you will have $1+2x$ if you win and $1-x$ if you lose, so your expected utility is
$$
\tfrac{1}{2}u(1 + 2x) + \tfrac{1}{2}u(1 - x)
$$
Maximizing this is equivalent to maximizing $u(1+2x) + u(1-x)$. In the special case of log utility $u(w)=\log w$ you require
$$
\frac{d}{dx} \left( \log(1+2x) + \log(1-x) \right) = \frac{2}{1+2x} - \frac{1}{1-x} = 0
$$
which you can solve to give $x = 1/4$, the same answer as if you used Kelly betting to maximize your long-term growth. Other utility functions will give different results.