Being Mensa you should do it without a calculator!!
You're travelling at 30mph thats 1/2 mile/minute
So front of train entering to leaving is 4 minutes i.e distance * 2
That leaves 330/1760 of a mile for the end of the train to leave the tunnel.
Invert the fraction, 1760/330 = 5 110/330 == 5 1/3 or 16/3
Invert again = 3/16 of a mile
So time = 3/16 * 2 of a minute = 6/16 of a minute
In seconds = 360/16 seconds = 22 8/16 seconds = 22 1/2 seconds
Total time = 4' 22 1/2 ''