var arr=[ [ 3500, 11000, 90000, ], [ 7000, 22000, 120000 ] ], size = 1, b = 3; var sp=arr[size-1][ b-1]; alert(sp);