public class age{
int a=12;
int i=0;
int b=32;

while(a*2 != b){
a++;
b++;
i++;
}


System.out.println("过了"+i+"年后,小明的妈妈的年龄是小明的两倍");

}