Your $2 \cdot 5!^2$ is correct for the number of ways to seat them ignoring the restriction of the two who won't sit together. Now subtract the number of ways with them sitting together. The first one you come to in the row can be either the boy or girl and can be in nine places.