I just want to double check my answer. I remember doing this same question a few months but I remember taking more time than I did in this 2nd attempt. So I probably something wrong in the work below.
So...
if T=0, then you will have J=0 and K=1. Will that give you what you want?
if T=1, then you will have J=1 and K=0. Will that give you what you want?