Office Depot Inc. and OfficeMax Inc. agreed to combine in a stock swap after losing sales to online rivals and Staples Inc., the largest U.S. office-supplies chain.

Office Depot will issue 2.69 new shares for each outstanding OfficeMax common share, according to a statement today. That’s equal to $13.50 a share, based on yesterday’s closing price.