Tile completely this 47 x 47 square with 52 rectangles. Each rectangle must contain precisely one numbered cell, and that number must be the area or perimeter of the rectangle it finds itself in. 

[![enter image description here](https://i.stack.imgur.com/cGPtF.png)](https://i.stack.imgur.com/cGPtF.png)

This puzzle is the creation of [Freddy Barrera](https://mathoverflow.net/questions/324654/tiling-a-square-with-rectangles-whose-areas-or-perimeters-are-1-2-3-n/324815#324815). No peeking at the solution please!