Create a tool to solve all your image-scaling needs. This tool will scale one rectangle to fit another. Your code is going to need to be able to ask the question: is the width or the height the limiting factor? To answer the question fist: it's the ratio of the width and height of two rectangles that matters.

I wanted to use only one input first, but couldn't figure out how to define the outputs. Thenm I used four inputs. My question is what's the meaning of the first output(the space which shows 36 in the right diagram).