We achieved a record $706 million in sales in the second quarter, an increase of 30% compared to the same period last year.
Infiltrator sales increased 38%, primarily due to favorable pricing as well as a slight volume increase with strong growth in the Southeast and Southern regions of the United States.
Additionally, international sales for the total company increased 29% this quarter with double-digit growth in our Canadian and Mexican businesses.
Our adjusted EBITDA decreased 5% this quarter.
Legacy ADS pipe products grew 31%, Allied Products sales grew 19% and Infiltrator sales increased 38%, with double-digit sales growth in both tanks and lease field products.
Consolidated adjusted EBITDA decreased 5% to $165 million, resulting in an adjusted EBITDA margin of 23.3% in the quarter.
We generated $31 million of free cash flow year-to-date.
As a percent of sales, working capital was 22% as compared to 20% in the same period last year.
For the full year, we continue to expect between $130 million and $150 million in capital expenditures with the largest investments focused on future growth, followed by our productivity and automation initiatives.
We are committed to a strong balance sheet, financial flexibility and returning excess cash to our shareholders, as demonstrated by the $312 million returned to shareholders year-to-date through share buybacks and dividends.
We completed our share repurchase program in the second quarter, purchasing a total of 2.6 million shares year-to-date.
Finally, our trailing 12-month leverage ratio was 1.7 times, remaining below our targeted leverage of two to three times that we've previously communicated.
Finally, on slide seven, we have updated our fiscal 2022 guidance.
Based on our performance and pricing actions taken to date, order activity, backlog and current market trends, we currently expect net sales to be in the range of $2.55 billion to $2.65 billion, representing growth of 29% to 34% over the prior year.
Our adjusted EBITDA guidance is unchanged at a range of $635 million to $665 million, representing growth of 12% to 17% over last year.

Summary:
For the full year, we continue to expect between $130 million and $150 million in capital expenditures with the largest investments focused on future growth, followed by our productivity and automation initiatives.
Finally, on slide seven, we have updated our fiscal 2022 guidance.
Our adjusted EBITDA guidance is unchanged at a range of $635 million to $665 million, representing growth of 12% to 17% over last year.