I want to clarify (because I can't find the answer) that I have to multiply diagonals, not multiply B by another B.
B is a 5x5 matrix. So if I put ones and one 5 in middle , I have $2*2*2*2*10 = 160\\$ $[1 1 1 1 1: 1 1 1 1 1: 1 1 5 1 1:1 1 1 1 1: 1 1 1 1 1]$
$2B$ is the matrix whose entries are twice the corresponding entries in $B$.
Since det is a multilinear function of the columns (or rows), $\det(2B)=2^n \det(B)$, when $B$ is $n \times n$. When $n=5$, this gives $\det(2B)=2^5 \det(B)=32 \det(B)$.