Finding the Standard Matrix

Could someone please explain how to find the standard matrix? I have a test tomorrow and my professor wasn't very clear about this part, and the textbook isn't helping much, either. Here are a couple of practice problems my professor gave us: