Write the two lines as one matrix equation with coefficient matrix (3 2; 1 −1). The first link prints its determinant −5, and the second computes it by the 2×2 rule, 3·(−1) − 2·1. Cramer then replaces one column at a time with the right-hand side: for x the matrix (16 2; 2 −1) has determinant −20, and the third link divides that by −5 to print 4; for y the replacement (3 16; 1 2) has determinant −10, and the fourth link divides it by −5 for 2. Check: 3·4 + 2·2 = 16 and 4 − 2 = 2.
The rule is attractive and unusable at scale. It asks for n + 1 determinants for an n×n system, and cofactor expansion costs on the order of n! operations where elimination costs n³/3 — which is why every numerical linear algebra text warns against it, and why it survives as a theoretical tool: it proves that the solution depends rationally on the right-hand side, and that the dependence breaks exactly where the determinant does. It also fails loudly and correctly when the determinant is zero, the same condition under which the two lines are parallel. The 2×2 case is the only one where Cramer is cheaper than anything else, and it is exactly the case every school syllabus keeps.
Answer
4
How to read it
x = 4 from −20 ÷ −5. The first and second links are the coefficient determinant −5, the fourth is y = −10 ÷ −5 = 2.
Source
Gabriel Cramer, 'Introduction à l'analyse des lignes courbes algébriques' (1750), where the rule appears for systems obtained by elimination; the determinant formulation in the modern shape is the standard textbook statement
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.