Pry up the damaged flooring planks using a pry bar. Pull out nails with pliers.
Measure the width of the old plank, including the length of the protruding tongue.
Use a table saw to cut the plywood to match the width you measured.
Get the measurement for how far up the side of the original plank the tongue and groove system is located. Set your table saw to this height. Align the board with the saw, and use the blade to cut out a new groove.
Flip the board around and draw a straight line on both sides to represent the location of the tongue. On the side of the board, draw two lines to represent the protruding tongue.
Use the saw to cut away the wood from the side to the depth you marked on the top and bottom of the plywood. When you're done, you should have an even tongue sticking out the middle of the board's side.
Insert the new tongue and groove plywood piece into the existing tongue and groove system on your floor.