Mikhail bought 7 shirts and 4 pairs of shoes for $490. His friend, who paid the same prices, bought 5 shirts and 2 pairs of shoes for $290 How much does each shirt and each pair of shoes cost ?