Sylvain spent a total of 18 hours on English and math homework over the last 3 weeks. He spent twice as much time on English than on math. Let x represent the number of hours spent on English and y represent the number of hours spent on math. What is the solution of the system of equations?