Math;Shapes within a shape?
Is there a formula in which you can work out how many pieces of an exact shape you can get out of another shape. For example:
I want to get as many squares as possible that measure 270mm x 270mm out of a rectangle that measures 825mm x 1800mm. Answer would be 18.

Anothet example would be i want rectangles that measure 225mm x 300mm out of a rectangle that measures 825mm x 2400mm. Answer would be 28.