Barnett, Peru win pentathlon