Odpowiedź:
Niech:
g - girlalda
l - laski
k - komin
m - mikołaj
x = ?
[tex]\left\{ \begin{array}{lll} g + l + 2k = 28\\ g + l + 2m = x \\ 2g + l + k =27 \\g + l + k + m = 24\\ 2g + k + m = 22 \\ 4l = 32 \\ 2g + 2k = 26 \\ g + k + 2m = 19 \end{array}[/tex]
4l = 32
l = 8
[tex]\left\{ \begin{array}{lll} g + 2k = 20\\ g + 2m = x - 8 \\ 2g + k = 19 \\g + k + m = 16 \\ 2g + k + m = 22 \\ 2g + 2k = 26 \\ g + k + 2m = 19 \end{array}[/tex]
[tex]\left\{ \begin{array}{ll} g + 2k = 20 \\ 2g + k = 19 \end{array}[/tex]
[tex]\left\{ \begin{array}{ll} g + 2k = 20 \\ k = 19 - 2g \end{array}[/tex]
g + 2k = 20
g + 2*(19 - 2g) = 20
g + 38 - 4g = 20
-3g = - 18
g = 6
k = 19 - 2g
k = 19 - 2*6
k = 19 - 12
k = 7
g + k + m = 16
6 + 7 +m = 16
m = 3
g + 2m = x - 8
6 + 2 * 3 + 8 = x
x = 20
Tak by wyglądał kwadrat:
[tex]\left[\begin{array}{cccc} 6 & 8 & 7 & 7 \\ 3 & 8 & 6 & 3 \\ 6 & 8 & 7 & 6 \\ 7 & 8 & 6 & 3 \end{array}\right][/tex]