Here $B^T$ denotes the transpose of $B$.
$A$ and $B$ are invertible $3\times 3$ matrices with integer entries.
$A$ is symmetric positive definite with at most two zero entries.
We want the determinants of both $A$ and $B$ be as small as possible (in terms of absolute value)
For a fixed matrix $A$, we want to find all matrices $B$ with small determinants, preferably less than 10, if they exist.
If A is a symmetric positive definite matrix then $B^TAB$ is a diagonal matrix iff B is an orthogonal matrix i.e. $B^T=B^{-1}$. If $\exists$ such a matrix $B$ then $B^TAB=diag(\lambda_1,\lambda_2,...,\lambda_n)$ where $\lambda_i$ are the eigenvalues of $A$. And the columns of $B$ are the corresponding eigenvectors of $A$. So to find the $B$ s.t. $det(B)<10$ you will need to find the eigenvectors of A.