Vyxal, 8 bytes
ṘKRṘ=ƛTh
ṘKRṘ # Over suffixes...
= # Check if each value is equal to the second input
ƛ # Map...
Th # Find the first index where it is equal
ṘKRṘ=ƛTh
ṘKRṘ # Over suffixes...
= # Check if each value is equal to the second input
ƛ # Map...
Th # Find the first index where it is equal