Bob can:
hammer the nail into a triangle, ignoring the boards completely.
Or, he can
hammer the nail partway into a blankplank, and then whack it at an angle until it forms a triangle with the plank. With a decent initial hammering, you should be able to pick the plank up by the nail without pulling it apart.