While working on a crafting project I was faced with the following problem for which I did find a solution just by trying but asked myself whether there was a general solution to the following problem:
Multiple tiny congruent rectangles, each with a height of x and a width of y, are aligned such that one line of rectangles in landscape orientation forms a bigger rectangle A together with a second line of rectangles in portrait orientation. My question is how many of these tiny rectangles are at least needed to form rectangle A?
Failed approach of mine...
Area of one tiny rectangle: $$x \cdot y$$
Number of tiny rectangles: $$k = m + n$$
Area of big rectangle: $$A = k \cdot x \cdot y = (m + n) \cdot x \cdot y$$
also $$(x+y) \cdot xm = (x+y) \cdot yn$$
With the information above I setup a system of linear equations:
$$ (n + m) \cdot xy = xm \cdot (x+y)$$ $$(n+m) \cdot xy = yn (x+y)$$
Which gave me the solutions
$n = \frac{mx}{y}$ and $m = \frac{ny}{x}$
As one can see the solutions are not really helpful, since $n$ is dependent on $m$ and vice verse. Is there any other way to solve this? Initially the problem seemed very simple, but now I'm just confused. So help would be greatly appreciated! Thanks in advance :-)