Measure the length and width of the rotted joist. Copy the side and angle measurements and any angles on the rotten joists onto two treated boards.
Cut the boards with a circular saw. Hold the two boards against the rotted joist and check the measurements to ensure they match.
Enlist the help of an assistant to hold each rotted board among the damaged joists in its original position. Have him hold one board on the outside of one of the joists. Drive 16d framing nails though the new treated board and into the damaged joist with your hammer to attach them. Space the nails 12 inches apart along the length of the boards.
Position the second cut board on the opposite side of the rotted joist. Repeat the technique outlined in step 3 to attach the second board to the joist.