solution for ac2 - timeouts on 8 & 9, answer for 13 is off by ~a million for some reason???