How would you know if AgNO3 + Al(NO3)2 forms a precipitate?

You memorize the solubility rules. Do you have a favorite web site. There are several?