Peaks calculation over distance

Dear All, I ask your help for a problem that I have.

I have two lists, as below:

POSP={1,1.9,2.5,3,10} 

VALP={1,3,2,3,1} 

I need to calculate the sum of the element in VALP within a mobile window running on POSP.
For example, if the window is 1 (on POSP), I need an aswer like that:

ANSW={4,5,5,3,1}

POSW={1,1.9,2.5,3,10}

ANSW is the sum of the element of VALP contained in the window moving on POSP.

Sorry for the confusion…

Thank you and best regards

Thank you Markus.