Mary is 9 years younger than Greg's age doubled, and their total ages combined equals 33. Create and solve an equation to find both children's ages.

33 - g = 2 g - 9

42 = 3 g

g = 14

m = 33-g = 19