The task is essentially simple (or maybe it seems to me), but something I can’t think of any algorithm for now. In general, you need to find the new dimensions of the inner rectangle contained in another whose dimensions change arbitrarily.
The dimensions of the outer and inner rectangle and the magnitude of the change in the outer are known. None of the rectangles is rotated - the sides of all the rectangles are always parallel to each other.
What are the solutions?
