Notam: V=pepenii verzi si G=pepenii galbeni
1/4V=1/3G
V/2+G/2=63 rezulta ca (V+G)/2=63, deci V+G=126, V=126-G
Inlocuim in 1/4V=1/3G => 1/4x(126-G)=1/3G
(126-G)/4=G/3
126/4-G/4=G/3
63/2=G/3+G/4 (in continuare aducem G la acelasi numitor) => 63/2 = 7G/12 (inmultim pe diagonala) => 14G=756 => G=756/14, deci G=54
Am zis la inceput ca V=126-G, deci V=126-54 => V=72
Raspuns: In acea gradina au fost 54 de pepeni galbeni si 72 de pepeni verzi.