A farmer has a rectangular field with dimensions $2m+7$ and $m-2$. If the field has an area of 51 square units, what is the value of $m$?