s = 270
p = 524
3s + p = 3 * 270 + 524 = 810 + 524 = 1334 lei
3s + p = 4 perechu incaltaminte
1334 : 4 = 333,50 lei in media /perechea de incaltaminte
20 010 : 333,50 = 60 perechi total
60 : 4 = 15 perechu pantofi
60 - 15 = 45 perechi sandale
Verificare:
15 * 524 + 45 * 270 = 7860 + 12 150 = 20 010 lei total