Seven times the first number plus six times the second number equals 31. Three times the first number minus ten times the second number is 29.