The condition is to plant a number of trees in each row equal to the total number of rows.
∴Number of rows=Number of columns
Total number of trees=Number of rows×Number of columns=Number of rows×Number of rows
⇒Total number of trees=Number of rows2
⇒√Total number of trees=Number of rows
⇒Number of rows=√576
Using prime factorization,
576=26×32
⇒576=(23×3)2
⇒√576=24
∴ Number of rows =24