A telephone company needs to create a set of 3-digit area codes. The company is entitled to use only digits 2, 4 and 5, which can be repeated. If the product of the digits in the area code must be even, how many different codes can be created?
Pick:
A) 20
B) 22
C) 24
D) 26
E) 30
we have 3 places (---)to fill &amp; we can use only digits 2, 4, 5   First place can be filled in 3 ways   2nd place can be filled in 3 ways because we can repeat the digits   3rd place can be filled in 3 ways because we can repeat the digits   Total no of codes = 3 x 3 x 3= 27   but one combination (555) will not be even so total no of even codes = 27 - 1= 
<gadget id="calculator">27 - 1</gadget>
<output>26</output>
26   Answer 26
<result>D</result>
A telephone company needs to create a set of 3-digit area codes. The company is entitled to use only digits 2, 4 and 5, which can be repeated. If the product of the digits in the area code must be even, how many different codes can be created?