Julie spent 122 on dinners for the youth group party she spent 77 on chicken dinners and the rest on pasta dinners if the pasta dinners cost 5 each how many pasta dinners did Julie buy

Julie spent a total of 122 - 77 = <<122-77=45>>45 dollars on pasta dinners.

Therefore, she bought 45 / 5 = <<45/5=9>>9 pasta dinners. Answer: \boxed{9}.