You correctly divided both sides by T, but you divided one side by R while multiplying the other by R. You need to divide both sides by R.