If you are ranked first in your subject at school, you will take the highest exam mark from your school cohort in that subject as your HSC assessment mark. Your HSC exam mark, which is what you got in the exam (after alignment), stays the same regardless of your rank in the subject.