Petr and Pavel were picking apples and pears in the orchard. On Monday, Petr ate 2 more pears than Pavel and 2 fewer apples than Pavel. On Tuesday, Petr ate 4 fewer pears than on Monday. Pavel ate 3 more pears than Petr and 3 fewer apples than Petr on Tuesday. Pavel ate 12 apples over the two days and the same number of apples as pears on Tuesday. In the evening on Tuesday, both boys found out that the number of apples they had eaten together over the two days was the same as the number of pears they had eaten together. How many apples did Petr eat on Monday and how many pears did Pavel eat on Tuesday?