La Función ya sustituida es: 
Z= 10(5)+2(10)+9(5)+20(15)+12(5)+18(10)= 655

Red: