To transofrm A,B,C to A',B',C' :
0 -1 15
1 0 0
0 0 1
which is rotation followed by translation, but
notice that when we compose the matricies we put them in the opposite
order. This is because the matrix on the right acts on the points
first, then the matrix on the left:
0 -1 15 1 0 15 0 -1 0
1 0 0 = 0 1 0 * 1 0 0
0 0 1 0 0 1 0 0 1
The matrix to take A',B',C' to A",B",C" is just the same rotation matrix
from above:
0 -1 0
1 0 0
0 0 1
Composing this (on the LEFT) with the previous tranformation matrix gives:
0 -1 0 0 -1 15 0 -1 0
1 0 0 * 1 0 0 = -1 0 15
0 0 1 0 0 1 0 0 1
Notice that in this matrix the rotation part (the upper left 2x2 part
of the matrix) is simply the rotation matrix for 180 degrees counter
clockwise. This is the sum of the rotations in each transformation.
The translation part though has been rotated by the second 90 degree
rotation so that now the 15 is a translation in the y direction.