nr divizibile cu 5 sunt cele are au ultima cifra 0 sau 5
Deci b=0sau 5
Daca b=0 si suma=12==>a+b+a+b=12=>2a+2b=12,dar b=0=>2a=12=>a=12/2=>a=6
O prima varianta ar fi 6060
Daca b=5 si suma =12=> a+b+a+b=12=>2a+2b=12,dar b=5=>2a+2*5=12=>2a+10=12=>2a=2=>a=1
A doua varianta e 1515