In a workshop there are 2 kinds of beds, 3 kinds of closets, 2 kinds of shelves and 7 kinds of chairs. In how many ways can a person decorate his room if he wants to buy in the workshop one shelf, one bed and one of the following: a chair or a closet?	Choose the correct choice.
A) 168.  B) 80.  C) 56.  D) 40.  E) 16.
ways to select one shelf = 2   ways to select one bed = 2   ways to select one of the following: a chair or a closet = 7+3= 
<gadget id="calculator">7+3</gadget>
<output>10</output>
10   ways to select all of them together= 2*2*10= 
<gadget id="calculator">2*2*10</gadget>
<output>40</output>
40   Hence, 40. is the answer.
<result>D</result>
In a workshop there are 2 kinds of beds, 3 kinds of closets, 2 kinds of shelves and 7 kinds of chairs. In how many ways can a person decorate his room if he wants to buy in the workshop one shelf, one bed and one of the following: a chair or a closet?