Here is the problem:
When cheching the Chi squared distribution table, the it seems like in the solution the denominators should be switched, because for .025 quantile the value is 13.844 and for .975 it is 41.923. But here everything is the other way round. Can someone explain?

qchisq(.95,10), which returns $18.30704.$ But in a printed table you'll look in a column headed $\chi^2_{0.5}$ to find $18.31.$ – BruceET Nov 28 '20 at 00:04