matt is six years older than hector. In two years matt will be twice as old as hector. how old is hector and how old is matt

m = h+6

m+2 = 2(h+2)
now just solve for m. substitute in h = m-6 and crank it out.