The total number of balls in the drawer is the sum of red and black balls, which is 12x + 3 + 5x + 1, giving 17x + 4. The probability of drawing two red balls is the combination of 12x + 3 taken 2 at a time divided by the combination of 17x + 4 taken 2 at a time, which equals 1/2. This gives the equation 2 times (12x + 3) times (12x + 2) equals (17x + 4) times (17x + 3). Expanding both sides gives 288x squared plus 120x plus 12 equals 289x squared plus 119x plus 12, which simplifies to x squared minus x equals 0. The valid solution for x is 1. Substituting x equals 1 into the total balls formula 17x + 4 gives 17 plus 4, which is 21. The result is 21.