Use combinations. nCr = n!/ [(n-r)!r!] [# of ways of selecting r objects from a group of n]
# of way of selecting both captains to be 8th graders = 4C2 = 4!/(4-2)!2! = 6
#of ways of selcting 2 captains from 10 students = 10C2 =10!/ (10-2)!2! = 45
Then take the quotient to obtain the probability : 6/45 = 2/15