Possible cases:
1. Case 1: 0 married: wont work cause then you have only 5 people available to make a committee of 6. So this case is out
2. Case 2: 1 married: we can choose 1 married, one from each of the remaining two couples, and both bachelors.
3c1 (one married couple so 2 people selected) * 2c1 * 2c1 (one couple from the remaining two couples selected and one person from that couple selected) * 2c1 (one person from the last remaining couple selected) / 2! (cause i defined the order or choosing couple 2 and then couple 3) *1 (cause there is only one way to select the two bachelors). This is equal to 12.
3. Case 3: 2 married: 2 married + two bachelors OR 2 married, 1 person from the last married couple and 1 bachelor.
3c2 (choosing two couples directly so 4 chosen) * 1 (one way to choose the two bachelors) + 3c2 (choosing two couples directly so 4 chosen) * 2c1 (one person chosen out of the remaining last couple)*2c1 (one person from bachelor). So this is equal to 15
Final ans = 12 + 15 = 27