Kevin's patio is made up of square tiles that were arranged to make a square. He decided to change it into a rectangle by making one of the sides 3 tiles shorter, and the other side 4 tiles longer.
To make this change, Kevin only needed to buy one extra tile.
What are the lengths of the sides of the rectangle?
This problem is adapted from the World Mathematics Championships