OK, so should I just leave my answer like the following?
I'm not sure you understood my last post. I was saying that the order you write the matrices matters for when you do the multiplication. You should have
Then carry out the matrix multiplication to get a single 2x2 matrix for g'.