If 6 is subtracted from three times a number , the difference is twice the number . What is the number ?