How to Flatten a list to use the inner lists inside Sum


I have the following list:

list = {{i,0,2},{j,0,2}}; 

I want to use the sub-lists into Sum as

sum = Sum[a[i]*b[j],{i,0,2},{j,0,2}] 

I need to Flatten the list to get access to its all nested-sublists.