"A numberXis converted to base 7 and becomes a four-digit number. Its leftmost digit is removed and written against as the rightmost digit. The number thus obtained is twiceX. Find the decimal representations of all such numbersX."

Any help on this is much appreciated, I've been trying to figure it out all week.