P, Q and R together have 180 candies among them. P gives Q and R each as many candies as they already have. After this, R gives Q half as many candies as Q already has, and R also gives P twice as many candies as P already has. Now each of them has the same number of candies with them. What is the ratio of the respective number of candies P and R had initially?