One​ day, a girl bought 20 ​first-class stamps and 10 postcard stamps for ​$17.10. Another day she spent ​$70.70 on 80 ​first-class stamps and 50 postcard stamps. Find the cost of each type of stamp.