A committee of 7 people A, B, C, D, E, F, G needs to vote on a board consisting of a chairman, a vice-chairman, and a secretary. (a) How many ways to vote are there such that either A or B is the chairman? (b) How many ways to vote are there such that either D or F is a board member?