Ronnie, Sulaiman and Ted each had some marbles. Ronnie gave Sulaiman some marbles that doubled the number of marbles he had. Then Sulaiman gave some marbles to Ted that doubled the number of marbles Ted had. Finally, Ted gave Ronnie some marbles that doubled the number of marbles Ronnie had. The number of marbles Ronnie, Sulaiman and Ted had became 168, 136 and 144 respectively. Find the number of marbles each child has at first.