Correct option is B
Given -

chairs are there = 29+19+7+17
chairs are there which are also cupboards = common number of (chairs, cupboards) = 19 + 7
but not tables = extract the number of tables which is common in (19 + 7) = 19 + 7 - 7 = 19
Option B is correct.