Attach two pieces of wood
Using a hammer, pound a nail through the first piece, and into, and through, the second piece, then into the floor.
Using a hammer, pound a nail through the first piece, and into, but not through, the second piece.