Skip to main content
1 of 4
Dion
  • 4k
  • 12
  • 42

Python 3, 128 bytes

a,b,c,d=input().split()
def g(a):
 for i in a:
  if i in 'aeiou':
   return a.index(i)+1
print(a[:g(a)]+b[:g(b)]+c[0]+'-'+d[2:])

Try it online!

Pretty new, probably extremely overcomplicated.

Dion
  • 4k
  • 12
  • 42