Suppose \(a_1, \ldots, a_8\) are positive real numbers that add up to \( 27 \). Can you find the minimum of the following expression? \[ \sqrt{1^2 + a_1^2} + \sqrt{2^2 + a_2^2} + \cdots + \sqrt{8^2 + a_8^2} \] Can the values of \(a_i\) that minimise this expression be rational?

This question was used in CS interviews at Lady Margaret Hall in December 2021. The question is due to Tom Orton.