how do i do brackets?
What do you mean?
The first thing you do, if you see brackets, you do the math in the brackets first.
Example(Examples always help understanding):
7+(6+7)x2
= 7 + 13 x 2
= 7 + 26
= 33