Place a tent next to every tree, either horizontally or vertically. Tents do not touch each other, not even diagonally and the numbers next to and below the diagram indicate how many tents there are in that particular row or column.
More information.