Harriet has $616 to buy desks for a new office. She needs 15 desks in all, and decides to buy 2 types of desks. Type A desks costs $42 and type B desks cost $40. How many desks of each type can Harriet buy?