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