Nevermind now I have managed to do it.
r2 = A.r1
r3 = B.r2
r3 = B.A.r1
And I get B.A = (0,1,0), (-1,0,0), (0,0,1)
Hopefully my notation is okay here, it's meant to read like: (a_11, a_12, a_13), (a_21, a_22, a_23), (a_31, a_32, a_33)
Which indicates a rotation of 90 degrees clockwise about the z-axis (going from r1 to r3), right?