Do you mean "both students are not boys" which is the same as "both are girls" or do you mean "the students are not both boys" which means at "least one is a girl"
In either case, your working is much too complicated. It looks like you are trying to apply formulas rather than thinking about the problem.
Assuming you meant the first then there are originally 40 students, 15 of whom are girls. The probability the first student chosen is a girl is 15/40= 3/8. There are then 39 students, 14 of whom are girls. What is the probability the second chosen is a girl? What is the probability both are girls?
Assuming you mean the second then there are originally 40 students, 15 of whom are girls. The probability the first student chosen is a girl is 15/40= 3/8. There are then 39 students, 25 of whom are boys. What is the probability the second chosen is a boy? What is the probability of "girl, boy", in that order?
Of course, then we have to compute the other order- there are originally 40 students, 25 of whom are boys. The probability the first student chosen is a boy is 25/40= 5/8. There are then 39 students, 15 of whom are girls. What is the probability the second chosen is a girl? What is the probability of "boy, girl", in that order?
What is the probability of "boy, girl" in either order?
(In either case, the answer is NOT "8/13"!)