How do you solve the system of equations 5x+y=9 and 10x+7y=18?