John is x years old and his sister Mary is (5x-12) years old. Given that Mary is twice as old as John, write in terms of x an equation connecting their ages and find their ages ​