https://tr.ivisa.com/esta-visa-usa
Passengers travelling to US for transit purposes should also submit an application for the exact same, while for different purposes like study, travelers are expected to apply to get a regular VISA. In both situations you will most probably be refused entry and removed on the very first available flight. The travellers don't have to travel together, though the application was submitted together.