I can't understand what you wrote, but here's a quick list for what need to write it in latex.

For every expression you want to write, begin by writing the math tags: [ math][/tex] (without that extra space)

Write your code between [ math] and [/tex].

To form a fraction, use \frac{numerator}{denominator}. Example:

\frac{22}{7} will become

You can use the symbols + - * ÷ for arithmetic operations.