Okay I'm taking an online math course and my professor gives us these problems weekly I've been doing well with them until now. HELP!

With a grid of x's and o's how many jumps (minimum) does it take to get all the x's to the opposite side of the board and all the o's to the opposite side of the board.

•If you are an X, you can only move one or two spaces to the right to an open square. If you are an O, you can only move one or two spaces to the left to an open square. You may jump over one letter when moving, but it has to be a letter different from the letter moving. What is the minimum number of moves it takes to move the O’s to the other left and the X’s to the other right?

board looks like this:

XXX OOO

There are no spaces between letters but one space seperating x's and o's

the problem should end up looking like this:

OOO XXX