I moved your thread into the right forum for better response and as I can see you are asking why
NOT A AND NOT B
NOT (A AND NOT B)
are not same and the reply lies in the bodmas rule of maths.
With the first statement the meaning is
Not of A and Not of B
Bit the second the statement is
A and Not Bs Not