a basketball player scored 21 times during one game. she scored a total of 40 points, two for each two-point shot and one for each free throw. how many two-point shots did he make? how many free throws?