Please see the attached file for the full problem description.
This shows how to construct matrices that fit given definitions.