For the remainder of 3 when divided by 7, look at numbers of the form 7n+3,

the first few are 3,10,17,... get the idea now? You can do the same thing for the ones that leave a remainder of 4 when divided by 5. Then what you can do is compare the two lists and see what numbers are the same.