hello, this look rather simple, but I struggle, I need some help, or at least a final answer so I can check myself....thank you

A and B are 5X5 matrices. it is known that:

det(A)=2

det(B)=-3

X is a square matrix so BXA^2 + 2I = 0

(multiplication of B, X and the square of A, plus twice the identity matrix)

what is det(X) ?