Multiply the fractions by this form of 1 to rationalize the denominator by removing the radicals from the denominator:
(color(red)(sqrt(2)) + color(red)(sqrt(8)))/(color(red)(sqrt(2)) + color(red)(sqrt(8)))
This gives:
(color(red)(sqrt(2)) + color(red)(sqrt(8)))/(color(red)(sqrt(2)) + color(red)(sqrt(8))) xx 1/(sqrt(2) - sqrt(8)) =>
(sqrt(2) + sqrt(8))/((color(red)(sqrt(2)) + color(red)(sqrt(8))) xx (sqrt(2) - sqrt(8))) =>
(sqrt(2) + sqrt(8))/((color(red)(sqrt(2))sqrt(2) - color(red)(sqrt(2))sqrt(8) + color(red)(sqrt(8))sqrt(2) - color(red)(sqrt(8))sqrt(8))) =>
(sqrt(2) + sqrt(8))/(sqrt(2)^2 - color(red)(sqrt(2))sqrt(8) + sqrt(2)color(red)(sqrt(8)) - sqrt(8)^2) =>
(sqrt(2) + sqrt(8))/(2 - 0 - 8) =>
(sqrt(2) + sqrt(8))/(-6) =>
-(sqrt(2) + sqrt(8))/6