I have no idea what statistics to use for the following (difference in differences):

- 4 groups of data with mean and standard error for each group.

- to calculate the difference of (the difference between group 1 and 2) and (that between group 3 and 4)

- hypothetical example:

4 17 y/o males, 5 17 y/o females, 6 18 y/o males, 7 18 y/o females.

I'd like to know if the difference in height between males and females differ between 17 y/o and 18 y/o.

What statistics should I use to calculate the p-value ?