If you're still interested to know how to do this question:
Before I tried to use the product rule,
P(its a boy and from senior) = P(its a boy) * P(its from senior [given its a boy])
but it's best NOT to think about it that way because product rule is used for independent events. In this one, having a second student as a boy will affect the number of students eligible to be selected and changes the probability that it's from senior.
You should use the concept of comparing probabilities, to find the probability that something happens given that another thing happens.
P(the second student is from senior, given it's a boy)
= P(the second student is from senior and is a boy) / P(the second student is a boy)
= P(what we want, i.e. a senior boy) / P(the given condition, i.e. a boy)
Also, in this sense we've taken into account that the student can be a girl because it's picked randomly. So the girls are not ignored.
The answer we get, 49/76, is exactly what the wording implies: the probability that it's from senior if it's a boy. For example, you're a friend of a maths teacher who chose the students at random. Your friend told you that today the second student he selected was a boy, and he also told you the composition of the student body in the school. He then asked you the chances of the boy being from senior and promised to give you a prize if you get this right. You answered that it's 49/76, and you got a prize.
Is this relevant to you? Probably yes.
When the question use the key words "given" and "if",
use this concept.
Thanks to Estel and withoutaface who helped me understand this concept in another thread.