Since B is a non singular matrix, therefore it is not equal to zero and it can be invertible. By using Theorem MMA, AB=BA becomes B^-1(BA)B. From there, by position the invertible to (B^-1xB)(AB), it becomes an identity matrix. Then with Theorem, when a matrix multiplication multiply with an identity matrix, it becomes AB.