A sample of bacteria is decaying according to a half-life model. If the sample begins with 800 bacteria, and after 18 minutes there are 240 bacteria, after how many minutes will there be 40 bacteria remaining?

When solving this problem, round the value of k to four decimal places and round your final answer to the nearest whole number.