No, your working was correct, but there are two problems :
- there is no solution (but x=3), so that's why you thought you were wrong
- you forgot a situation : -x+3<0 and x-3<0 (their product is positive ). It'll also yield to an impossibility, but you mustn't forget this case.