You take the 5 guys as 1 person (since theyre sitting together) and the 5 girls are one person. We place these two 'people' in a circle which is (2-1)!. And then the 5 boys can rearrange themselves in 5! ways and the 5 girls can rearrange in 5! ways. Giving a total of 1!5!5!
Hope that helps