The determinant of the matrix for the pineapple cake is 4350
The price of a pineapple cake is $30
The determinant of the matrix for the chocolate cake is 5075
The price of a chocolate cake is $35
Basically, what we want to do in this question is to form a set of linear equations then use matrix determinant method to solve for the unknowns in the linear equation.
Before we set up these equations,we need to use variables to represent the fruit prices;
Let p represent the price a of pineapple
Let c represent the price of a chocolate;
So let us proceed to form the linear equations;
The equation for the weekdays sales will be;
The equation for the weekend sales will be;
Now, we have two equations that we need to use the matrix determinant method to solve;
The above is the matrix set up we wil use;
Now, we start by calculating the determinant of 2 * 2 matrix; that would be;
Next is to find the determinant of the pineapple cake matrix;
To find this, what we will do is to substitute the coefficient of p with the total sales value to get a new matrix set;
The matrix for the pineapple cake will be;
Next is to find the determinant of the chocolate cake matrix;
To find this, what we will do is to substitute the coefficient of c with the total sales value to get a new matrix set;
The matrix for the chocolate cake will be;
Finally, we proceed to get the prices for the pineapple and the cake;
To get this, we simply divide the matrix of each by the initial matrix value;