Put the first few double dominoes (1-4 in the 4×4 grids, 1-5 in the 5×5 grids) into 2 adjacent squares in the grid so that dominoes do not overlap. The numbers to the right and below the grid should be the total number of pips in that row or column.

The solutions are here.