Algebra, Equations & Number Patterns

Answer & solution
Official answer: 8
The products are 2·5=10 and 7·3=21, so h=21 mod 10=1. On(1, 4, 6, 8), f=8 and g=1. Thus fg=8·1=8.
Evaluate the nested h first. Its products are 2×5=10 and 7×3=21. Dividing 21 by 10 leaves remainder 1, so the outer argument list is 1, 4, 6, 8. Its maximum is 8 and minimum is 1. The requested combined operation fg multiplies those two outputs, 8×1=8; it does not apply h again or multiply all four input values.