The number of identical towers must be a factor of both 48 and 40
The greatest common divisor of 48 and 40 is 8
48 = 8×6
40 = 8×5
So the greatest number of towers is 8.
Each tower will have 6 yellow blocks and 5 green blocks
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
∎ ∎ ∎ ∎ ∎ ∎ ∎ ∎
Edwin