Let $\displaystyle \varphi$ be the golden ratio, and let $\displaystyle f$ be a face ratio. Then $\displaystyle 0\le|f-\varphi|<\infty$. A natural idea is to have a linear function that maps the difference $\displaystyle |f-\varphi|$ to [0, 10] such that the difference 0 is mapped to 10. However, one has to select what value is mapped to 0, i.e., which face ratio is absolutely ugly. For example, one can decide that

the ratio 3 is absolutely ugly, so $\displaystyle 3-\varphi$ is mapped into 0. The function that maps $\displaystyle [0, 3-\varphi]$ into [10, 0] is $\displaystyle g(x)=10-10x/(3-\varphi)$, so the measure of beauty for a face ratio $\displaystyle f$ is $\displaystyle g(|f-\varphi|)=10-|f-\varphi|/(3-\varphi)$. Good news: for your values, the measures are both around 9.97; this is because they are very far from the ugliness standard.