Almost 50,000 students across the state sat either the advanced or standard HSC mathematics exam on Wednesday.