Can You Salvage Your Rug?

Riddler Express

From Michael Amspaugh comes a riddle that will pull the rug out from under you:

I have a rug that is 12 feet long and nine feet wide. Unfortunately, after many years of using it as a putting green, a narrow section in the middle had to be excised. That middle strip was eight feet long and one foot wide, as shown below.

Upon seeing the state of the rug, my neighbor (and golf partner) suggested I cut the rug into two pieces and sew them back together so that it formed a square rug, 10 feet by 10 feet, with no holes (shown below).

How was this possible?

Solution

Rohan Lewis

2022.10.14

Code can be found here.