Take 240 then, 165+236=240, right?
For 2nd degree, it is hard to keep 100 level credits below 6. So, you'd better avoid taking 100 level courses. By the way, 1 year before, 238 includes everything, 165 and 236 are for white ppl, not Chinese.
By the way, in CS program, you can always get waiver as long as you think you can handle it.