A study of academic achievement in mathematics after the transition from primary to secondary education