input output

10 12
15 22
21 _______
6 4
29 50
_______ 2

how do i solve this problem?