Equations: 2x * 3 = 24 and 2x * 3x = 12, how to solve them?

Equations: 2x * 3 = 24 and 2x * 3x = 12, how to solve them?

The first 2x * 3 = 6x, 6x = 24, x = 24 / 6 = 4, the second 2x * 3x = 6x * x = 12, so x * x = 12 / 6 = 2, x = radical 2