A club with a total membership of 30 has formed 3 committees, M, S, and R, which have 8, 12, and 5 members, respectively. If no member of committee M is on either of the other 2 committees, what is the greatest possible number of members in the club who are on none of the committees?