In ograda bunicului sunt oi si gaini, avand in total 18 capuri si 50 de picioare. Cate oi si gaini sunt in ograda?