The sum of two numbers is 23. The larger number y is 1 less than twice the smaller number x. Write and solve a system of linear equations to find the two numbers.