how do i find input and output for:

input output
_______ 10
16 11
22 14
50 28
8 _________
30 18