The matrix B that organizes the data is given as follows:
B = [13, 36, 27,
10, 15, 0,
23, 51, 27].
The matrix that shows the total value of each cap size in each location is given as follows:
C = [247, 684, 513,
190, 285, 0,
437, 969, 513].
The matrix B is defined considering that it will have three rows and three columns, as follows:
Then the matrix B is defined as follows:
B = [13, 36, 27,
10, 15, 0,
23, 51, 27].
The cost of each baseball cap is of $19, thus the cost matrix is obtained multiplying the matrix B by the constant of 19.
When a matrix is multiplied by a constant, all the elements of the matrix are multiplied by the constant, hence the cost matrix is given as follows:
C = [247, 684, 513,
190, 285, 0,
437, 969, 513].
More can be learned about matrices at https://brainly.com/question/2456804
#SPJ1