In one week, a music store sold 9 guitars for a total of $3611. Electric guitars sold for $479 each and acoustic guitars sold for $339 each. How many of each type of guitar were sold?