From vera (“to be”) and með (“with”).
vera með (strong verb, third-person singular past indicative var með, third-person plural past indicative voru með, supine verið með)