This problem came from Dan Meyer's Makeover Monday Series. http://blog.mrmeyer.com/?p=17257
It is based on the Checkerboard Borders task in the Mathematics Vision Project Secondary One curriculum. https://www.mathematicsvisionproject.org/secondary-mathematics-i.html