>>918
m > 0なのだから
m = 1

2n + n^2 = 24
n^2 +2n -24 = 0
(n-4)(n+6) = 0
n = 4 or -6