%purpose of this is to figure out the general strategy of
%offers from people of a certain degree
function result = Wealth(indata, trial, degree)
neigh = Neighbors(indata,trial);
data = indata{trial,7};
data2 = indata{trial,6};
result = zeros(1,3);
for counter = 1:36
    if neigh(counter,1) == degree
        result(1,1) = result(1,1) + data(counter);
        result(1,2) = result(1,2) + data2(counter)*2;
    end
end
result(1,3) = result(1,1) / result(1,2);