The substitutability between class size and instructional hours and its impact on academic achievement