Next, we need to choose the entering variable. Since X1 has the most negative coefficient in the objective function, we choose X1 as the entering variable. To determine the leaving variable, we calculate the minimum ratio test for each constraint:
10/1 = 10 -8/-1 = 8
The minimum ratio is 8, so X5 leaves the basis. Perform row operations to pivot X1 into the basis:
The most negative coefficient in the Z' row is -10, which corresponds to X2. So, X2 is the entering variable.
Step 4: Select the leaving variable
To determine the leaving variable, divide each positive number in the RHS column by the corresponding coefficient of the entering variable in the pivot row.