How many days Phuket/Koh Phi Phi/Krabi/Koh Tao

Hi everyone! Going with a friend and need to know how many days to stay in each of these places. Obviously the main idea for this part of the trip is beaches. We will have from June 11 to 22 (11 nights) and our idea was to visit Phuket, Koh Phi Phi, Krabi, and Koh Tao. How would you recommend we separate it out?