See here.
https://www.nextgenforme.com/maine-state-tax-deduction/#:~:text=The%202023%20Maine%20State%20Tax,stu....