Three years ago the average age of A and B was 18 years. with c joining them ,the average age become 22 years.how old is c?	Choose the correct choice from the following:
A) 26
B) 31
C) 24
D) 22
E) 27
Present age of A+B =(18*2+3*2)= 
<gadget id="calculator">(18*2+3*2)</gadget>
<output>42</output>
42 years   Present age of A+B+c=(22*3)= 
<gadget id="calculator">(22*3)</gadget>
<output>66</output>
66 years   24's age is= (66-42)= 
<gadget id="calculator">(66-42)</gadget>
<output>24</output>
24 years   Answer=24
<result>C</result>
Three years ago the average age of A and B was 18 years. with c joining them ,the average age become 22 years.how old is c?