8. The time requirements (in person hrs) per unit of product for each of three products in each of three departments are given below.

Product A product B product C
Department1 2 1 3
Department 2 1 2 1
Department 3 2 2 1
Department 1, 2, and 3 have available 80, 50, and 60 person hrs respectively. How many units of each product should be produced if all the available person hrs is to be used? Use crammers rule to solve the problem. Check your answer by using Gauss- Jordan method.

To solve this problem using Cramer's Rule, we will set up a system of equations. Let's define the variables:

- Let x, y, and z represent the number of units of Product A, Product B, and Product C, respectively.

Now let's set up the equations based on the time requirements and available person hours:
1) Department 1: 2x + y + 3z = 80
2) Department 2: x + 2y + z = 50
3) Department 3: 2x + 2y + z = 60

We can write this system of equations as:

| 2 1 3 | | x | | 80 |
| 1 2 1 | * | y | = | 50 |
| 2 2 1 | | z | | 60 |

Now, let's calculate the determinants using Cramer's Rule.

First, calculate the determinant of the coefficient matrix (denoted as D):
| 2 1 3 |
| 1 2 1 |
| 2 2 1 |

D = (2*(2*1 - 2*1) - 1*(1*1 - 2*3) + 3*(1*2 - 2*2))
= (2*(2 - 2) - 1*(1 - 6) + 3*(2 - 4))
= (0 - 1*(-5) + 3*(-2))
= (0 + 5 - 6)
= -1

Now, let's calculate the determinants of the matrices when each column is replaced by the constants vector.

Dx (the determinant when the first column is replaced):
| 80 1 3 |
| 50 2 1 |
| 60 2 1 |

Dx = (80*(2*1 - 2*2) - 1*(50*1 - 2*60) + 3*(50*2 - 2*60))
= (80*(2 - 4) - 1*(-10) + 3*(100 - 120))
= (80*(-2) + 1*(-10) + 3*(-20))
= (-160 - 10 - 60)
= -230

Dy (the determinant when the second column is replaced):
| 2 80 3 |
| 1 50 1 |
| 2 60 1 |

Dy = (2*(50*1 - 2*60) - 80*(1*1 - 2*3) + 3*(1*60 - 2*50))
= (2*(-10) - 80*(-5) + 3*(60 - 100))
= (-20 + 400 + 3*(-40))
= (380 - 120)
= 260

Dz (the determinant when the third column is replaced):
| 2 1 80 |
| 1 2 50 |
| 2 2 60 |

Dz = (2*(2*60 - 2*50) - 1*(1*60 - 2*80) + 80*(1*2 - 2*2))
= (2*(120 - 100) - 1*(-20) + 80*(2 - 4))
= (2*(20) + 1*(-20) + 80*(-2))
= (40 - 20 - 160)
= -140

Now, let's calculate x, y, and z using Cramer's Rule:
x = Dx / D = -230 / -1 = 230
y = Dy / D = 260 / -1 = -260
z = Dz / D = -140 / -1 = 140

Therefore, the solution to the system of equations is:
x = 230, y = -260, z = 140

This means that to use all available person hours, we should produce 230 units of Product A, -260 units of Product B (which indicates we should not produce any units), and 140 units of Product C.

To check the answer using Gauss-Jordan method, we can set up an augmented matrix and apply row operations. However, in this case, the matrix is already in a form where we can easily solve for x, y, and z using back-substitution:

| 2 1 3 | | 230 |
| 1 2 1 | = | -260 |
| 2 2 1 | | 140 |

By subtracting two times the second row from the third row, we get:

| 2 1 3 | | 230 |
| 1 2 1 | = | -260 |
| 0 -2 -1 | | 660 |

By dividing the third row by -2, we get:

| 2 1 3 | | 230 |
| 1 2 1 | = | -260 |
| 0 1 1/2 | | -330 |

By subtracting the second row from twice the first row, we get:

| 0 -3 1 | | -300 |
| 1 2 1 | = | -260 |
| 0 1 1/2 | | -330 |

By adding three times the second row to the first row, we get:

| 3 3 4 | | -420 |
| 1 2 1 | = | -260 |
| 0 1 1/2 | | -330 |

By subtracting 2 times the third row from the second row:

| 3 3 4 | | -420 |
| 1 0 0 | = | 200 |
| 0 1 1/2 | | -330 |

By subtracting 3 times the third row from the first row:

| 3 0 1 | | 30 |
| 1 0 0 | = | 200 |
| 0 1 1/2 | | -330 |

By subtracting half of the third row from the second row:

| 3 0 1 | | 30 |
| 1 0 -1/2 | = | 215 |
| 0 1 1/2 | | -330 |

By adding half of the second row to the third row:

| 3 0 1 | | 30 |
| 1 0 -1/2 | = | 215 |
| 0 1 0 | | -440 |

From this row echelon form of the augmented matrix, we can read the solution directly:

x = 30
y = 215
z = -440

This result is consistent with the solution obtained using Cramer's rule.

Therefore, the solution to the problem is:
x = 230, y = -260, z = 140.