Nate and Maya are building model cars. Maya's car is 3 inches less than 2 times the length of Nate's car. The sum of the lengths of both cars is 26 inches. Write an equation to determine the lengths of Nate's and Maya's cars.