Brian spent $18 on sticky notes and envelopes. Each pack of sticky notes costs $3. A pick of envelopes costs $6. If he buys an equal number of packs of each, how many packs of each did Brian buy?