Get your taxes done using TurboTax

It depends on where her "tax home" is.  Her tax home is where she earns the majority of her income, or does the majority of administrative work related to her job.  If this was her only income for the year, then her tax home is City #2 where the job and apartment were, even though her personal home is in City #1.  Essentially, she chose a job with a really long commute, and commuting is not deductible.  See chapter 1 here for more. https://www.irs.gov/pub/irs-pdf/p463.pdf

If she also had a job in your main city and earned more money in the main city, then her tax home is probably your main city and the summer job in city #2 could be considered a temporary job away from her tax home.  In that case, travel, lodging, and 50% of meals are deductible. If this was a W-2 job the deductions are all on form 2106 unreimbursed employee expenses, and are an itemized deduction on schedule A and subject to the 2% rule, so the deduction will be limited by your other tax circumstances.  If she was an independent contractor, the expenses are deductible on schedule C.