How to do this question regarding transformations and subsequently matrices?

enter image source here