This is an assignment my sister in primary school got. I think they're supposed to solve it via trial and error, but I was wondering if there's a clever way to solve it.
Lay the tiles of a double-six domino set in a a square shape such that adjacent tiles touch with matching values, and that the sum of the values on each side of the square is the same. The target shape:
A double-six domino set, from https://en.wikipedia.org/wiki/Dominoes#/media/File:Dominomatrix.svg:


This is likely not the "clever" solution you had sought, but it does work for a similar problem given to my son as a 2nd-3rd grade problem. His problem was not exactly the same, although in the same flavor.
In this problem, 4 dominos were to be placed to form a square (see Table). Each side of the square had 3 numbers, and the sum of the sides were to be equal. The dominos were (5,3), (3,6), (2,5), and (4,2). The first domino was placed in the upper left corner of the square as shown below. The problem asked how to place the remaining dominos.
We solved this by writing a computer program in Python, shown below. This was the solution.