The number of girls in a class is 4 more than the number of boys. On a day when only 8 boys were absent, the numbers of girls were double the number of boys. How many girls and boys are there in that class?