If we remove one red ball, the reminder (Total -1) is a multiple of 7.
If we reomve two blue balls, the reminders (Total-2) is a multiple of 5.
Write a small table with two columns. first column is multiple of 7 +1. Second column is multiple of 5 +2. The first match is 22, which is the answer