Square brick area = square brick side length * square brick side length
Room area = square brick area * number of square bricks = 40 * 40 * 90 (cm2) =144000 (cm2)
So the number of small square bricks = room area/small square brick area =144000/(30 * 30) =160 (block).