Analysis of relationship between legal and illegal guns