Here is a goal: To line the square muffin pan with parchment paper so that paper can line the pan exactly.

How would you accomplish this goal?
Measure the depth and side of the inside of the squares. Cut the parchment paper into squares with the length equivalent to 2 depths plus 1 side. Fold it up at the length of the depth on all 4 sides. Cut away the overlaps at the corners.