Since y must equal both 3x+2 and x-4, we deduce that 3x+2 and x-4 must equal each other. So, we have