Are you saying the last line is not your own, and you don't know how to get it?
First multiply the inequality by -1, then complete the square in x and y.
But there are a couple numbers wrong in the next to last line. Did you divide by 6 or by 24 to get it?