12. Leases The components of lease costs recorded in cost of sales and SG&A expense were as follows (in thousands): | | | | | | | | | Year Ended | | Year Ended | | | April 30, | | April 30, | | | 2024 | | 2023 | Operating lease cost | | $ | 10,400 | | $ | 8,048 | Short term lease cost | | | 1,198 | | | 862 | Variable lease cost | | | 1,678 | | | 1,820 | Sublease income | | | — | | | — | Total lease costs, net | | $ | 13,276 | | $ | 10,730 |
Supplemental lease information was as follows: | | | | | | | | | Year Ended | | Year Ended | | | April 30, | | April 30, | | | 2024 | | 2023 | | | (In thousands) | | (In thousands) | Cash paid for amounts included in the measurement of operating lease liabilities | | $ | 9,626 | | $ | 7,690 | Right-of-use assets obtained in exchange for new lease liabilities | | $ | 10,193 | | $ | 7,463 | | | | | | | | Weighted average remaining lease term | | | 51 months | | | 53 months | Weighted average discount rate | | | 5.4% | | | 4.3% |
Maturities of operating lease liabilities as of April 30, 2024 were as follows (in thousands): | | | | 2025 | | $ | 10,722 | 2026 | | | 8,358 | 2027 | | | 7,628 | 2028 | | | 5,608 | 2029 | | | 4,503 | Thereafter | | | 1,628 | Total lease payments | | | 38,447 | Less: imputed interest | | | (5,861) | Total present value of operating lease liabilities | | $ | 32,586 |
|