Given that the order actually matters, we use the permutation formula.
![P(n,r)=(n!)/((n-r)!)](https://img.qammunity.org/2023/formulas/mathematics/college/170pla3corn04wg1ticowtzmft4fq84s20.png)
Where n = 18 and r = 2.
![P(18,2)=(18!)/((18-2)!)=(18\cdot17\cdot16!)/(16!)=18\cdot17=306](https://img.qammunity.org/2023/formulas/mathematics/college/qxqir37p714lanvly5howo5l21jcq0vguw.png)
There are 306 ways to arrange the students in groups of two.
Then, we find the probability by dividing 1/306 because there's one possible event of being Kelly and Brooke the first 2 out of 306 possible permutations
Therefore, the probability is 1/306.