It is known that Ray AP bisects angle CAT. If m<CAT = 5x+17 and m<PAT = 3x-4, then determine the value of x.​