EXHIBIT NO. 99.(i) 2

LEGAL OPINION CONSENT

I consent to the incorporation by reference in this Post-Effective Amendment No. 188 to the Registration Statement (the “Registration Statement”) of MFS Series Trust X (the “Trust”) (File Nos. 33-1657 and 811-4492), of my opinion dated September 25, 2026, appearing in Post-Effective Amendment No. 187 to the Trust’s Registration Statement, which was filed with the Securities and Exchange Commission on September 25, 2026.

 /s/BRIAN E. LANGENFELD 

 Brian E. Langenfeld

 Vice President and Managing Counsel

Boston, Massachusetts

November 25, 2026