A symmetric matrix is a square matrix that satisfies AT = A, where AT denotes the transpose. Next, in general it holds (AT)T = A. Finally, for the product of two matrices A and B it holds:
Anton Vrdoljak has answered the question. Just to add a minor comment: X0T⋅M⋅X is a scalar (if X and X0 are column vectors), therefore, X0T⋅M⋅X = (X0T⋅M⋅X)T