Micaela is 2 years older than Sam. In 4 years, the sum of their ages will be 40. How old is Micaela now?