Given the following matrices: A=2-5704-3    ;    B=5-63-1   …