How long will it take to earn $288 in interest if he invests $2400 at a rate of 4 %

simple or compound interest ?