# [Tex/LaTex] Math symbol explanation in the same line

amsmathvertical alignment

I would like to write the explanation of symbols on the same line of the equation.

I would like to see something like this:

This is my code:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{amsmath}

\begin{document}

$$K_0 = \frac{\sum x}{n} && \text{where, x_i - raw yaw angle at idle state} \label{eq:2} \\ \text{n - total number of measurements}$$

\end{document}


K_0 = \frac{\sum x}{n} \qquad \text{where,}\quad \begin{alignedat}[t]{2} &x_i &&\text{ -- raw yaw angle at idle state} \\ & n &&\text{ -- total number of measurements} \end{alignedat}