India and China have agreed to "peacefully resolve the situation in the border areas in accordance with various bilateral agreements", the Foreign Ministry said today, a day after the two counties held high-level talks between the militaries of the two countries near eastern Ladakh.