During a sale at the market​, steaks sold for ​$4 and watermelons sold for ​$3.50. Luca spent ​$23 and bought a total of 6 steaks and watermelons. How many of each did he ​buy?