We know that square bracket is a type of parenthesis.
Hence, in the given expression, we have parentheses inside another pair of parentheses.
So, we must solve the expression inside the innermost parenthesis first.
(16÷16)×(25−6×4)×[(8−5)×8+1]+17
=(16÷16)×(25−6×4)×[3×8+1]+17
Now, all the parentheses are at the same level.
∴ We move from the left to the right while solving the expression in the parenthesis.
(16÷16)×(25−6×4)×[3×8+1]+17
=1×(25−6×4)×[3×8+1]+17
While solving the expression in the parentheses, we again follow the PEMDAS rule, i.e., first, multiply and then the subtraction.
=1×(25−24)×[3×8+1]+17
=1×1×[3×8+1]+17
=1×1×[24+1]+17
=1×1×25+17
=1×25+17
=25+17
=42