Set the running times equal, use algebra to simplify the equation, and then various powers of two to hone in on the right answer.