A basketball player hit the basket eighteen times during the game. He scored a total of 30 points, two points for each field goal and one point for each free throw. If he threw 6 more field goals than free throws, how many field goals did he make? How many free throws did he make

-Pls provide work :)