solve n mod 3=2, n mod 5 = 4, 40<=n<=50