array tracing help

im confused on to how this prints 30 and not 16
Was this page helpful?