You need to combine all "like terms." There are two q terms so you need to combine those. To combine "like terms", simply add their coefficients. 6q has a coefficient of 6 and q has a coefficient of 1. So:
24 pine trees in equal rows, with the number of trees in each row being 10 or more than the number of rows. Hugo could have planted 12 trees in 2 rows.