Because the teacher said "write five papers from 90 to 95 (including 90)", emphasizing that 90 is included, but 95 is not included; "95 ~ 100 (including 95) write three papers", emphasizing that 95 is included, and of course 100 does not, so: you write three papers.
Dear, please accept the answer. Your adoption is my motivation. Thank you.