You have the following expression:
In order to simplify the previous expression, conisder that 24 can be written as:
24 = 6*4 = 6*2^2
Then, you have:
Where in the last steo you simplify the terms becasue they are like terms due to the factor √6.
Then, you have for the required coefficients:
a = 2
b = 6