M = Moe's rate
a = Andrew's rate
we know both of them together can do the whole thing in 6 hours, so in 1 hour they have done 1/6 of the job.
since Moe can do the job by himself in "m" hours, in 1 hour he has done 1/m of it then, and whilst Andrew can do it in "a" hours, in 1 hour he has done 1/a of it.
now, let's keep in mind that Andrew is slower, it took Andrew 9 hours longer than it took Moe, so if Moe took "m" hours, Andrew took "m + 9", so a = m + 9, and therefore Andrew in 1 hour has done 1/(m+9).

since it's a speed rate, it cannot be -6.
so, Moe can do the job by himself in 9 hours, well, Andrew can do it in, 9+9.