How investments in education pay off