Hi! this code solves matrixes, if there are any bugs please say so in the comment box thank you
Calculate