need help with quadratics question
so, basically, we got this question for homework, and i have literally no idea what to do. the only thing i know is that the formula will be quadratic. so heres the problem
"There are seven boy scouts and seven girls scouts in a 15 seat canoe. They are all single seats. the girls are sitting in the front seven chairs, and the boys are sitting in the back seven chairs and they want to switch completely. the only way they can move is by moving one seat up or back, or leapfrogging over somebody else to land on their other side. what is the minimum amount of moves it would take to do this."
I really need help so any would be appreciated.