Since the chairs are numbered, so they are distinguishable.
Therefore 3 boys can be arranged on 3 alternate chairs in 3! ways. 3 girls can be arrenged in 3! ways
Also, the girls can be seated before the boys.
Total number of required ways = 3! × 3! + 3! × 3! = 2 × (3!)2