Both are part of the Communauté métropolitaine de Montréal, on the North and South Shores respectively, treated as inside the Montréal metro area for scoring purposes.
Laval / Longueuil is inside the Montréal metropolitan area for PSTQ scoring. Does not qualify for the residence/work/study-outside-Montréal bonus points.