The presidents of Ecuador and Peru say they have agreed to work together to try to find a peaceful solution to their long-running border dispute.
The presidents of either country are going to work together.
It is correct they have agreed to work together.