In the case of a fraction whose numerator and denominator consist of a product, a sum, and so on, the values that belong together must be bracketed together.
Use the following syntax:
{a + c} over 2 = m
or
m = {a + c} over 2