Math Pesto's Pencil Puzzle

Credit to puzz.link for the images.