Center one shingle lengthwise in the valley.
Press the shingle into the valley, causing it to fold along the angle of the roof's valley.
Hold the metal ruler across the shingle's crease
Cut the shingle along the crease using the carpenter's razor.
Mark the left half "L" and the right half "R" using the chalk. These two shingle portions will serve as templates for shingles that you need to trim.
Place the cut shingle templates over the top of any shingle requiring trimming.
Cut the shingles needing trimming with the carpenter's razor, using the template as a straight edge.