Pedro is as old as Juan was when Juan is twice as old as Pedro was. When Pedro is as old as Juan is now, the difference between their ages is 6 years, find their ages now.