Stephanie is x years old. Tobi is twice as old as Stephanie. Ulrika is 3 years younger than Tobi. The sum of all their ages is 52 years. Work out the value of x.