What math courses students take – and when they take them – can make a world of difference for their futures.