The Moore family received 27 pieces of mail on March 30. The mail consisted of magazines, ads, letters, and bills. How many magazines did they receive if they received three more ads than letters, the same number of magazines as letters, and five more bills than ads?