Merideths brother, miles, is 3 years younger than twice her age. The sum of their ages is 24. Create an equation to determine their ages. How old are they?