var GET=(function(){function f(s){return new g(s);}function g(s){this._s=s.trim().split("\n");this._y=0;}g.prototype.a=function(f){var s=this._s, y=this._y, r;if(typeof s[y]==="string")s[y]=s[y].split(" ").reverse();r=s[y].pop();if(!s[y].length)this._y++;return f?r:+r;};g.prototype.l=function(f){var s=this._s[this._y++].split(" ");return f?s:s.map(a=>+a);};g.prototype.m=function(n,f){var r=this._s.slice(this._y,this._y+=n).map(a=>a.split(" "));return f?r:r.map(a=>a.map(a=>+a));};g.prototype.r=function(n,f){var r=this._s.slice(this._y,this._y+=n);return f?r:r.map(a=>+a);};return f;})();
var o=GET(require("fs").readFileSync("/dev/stdin","utf8"));
function lower_bound(d,a,b,e){for(var c;1<b-a;)d[c=0|(a+b)/2]<e?a=c:b=c;return d[a]<e?b:a};

console.log(main());
function main(){
  var n = o.a();
  var q = o.a();
  var a;
  if(n & 1)a = [0].concat(o.l()), n++;
  else a = o.l();
  var x = o.r(q);
  var u = [0], v = [0];
  for(var i = 0; i < n; i++){
    u[i+1] = u[i] + a[i];
    if(i & 1)v[i+1] = a[i] + v[i];
    else v[i+1] = v[i];
  }
  var w = [0], z = n/2;
  for(i = 1; i < z; i += 2){
    w.push((a[i]+a[z++])/2);
  }
  var ans = [], wl = w.length;
  for(i = 0; i < q; i++){
    var t = lower_bound(w,0,wl,x[i]) - wl;
    ans[i] = u[n] - u[n+t-1];
    ans[i] += v[n+t*2-1];
  }
  return ans.join("\n");
}