% know that the first player in the deals
% data is the one that "caused" the deal
% by changing their offer - thus
% the first is the price taker, second is
% the price maker
function result = Match(indata,trial)
offers = indata{trial,5};
deals = indata{trial,8};
s = size(deals);
s = s(1);
o = 1;
for d = 1:s
    while deals(d,1) ~= offers(o,1)
        o = o + 1;
    end
    dealstarter(d,1) = offers(o,5) / offers(o,4);
end
% col 1 is the price that the first player actually
% got, and col 2 is the price they offered
% Thus, col 1 > col 2, otherwise the deal wouldnt
% have happened
result = [deals(:,5) ./ deals(:,3 ),dealstarter];