Labman is correct. Figure out which black/white set comes from the switch, mark it's white wire with black tape. Figure out which black/white set comes from the breaker.
Connect:
Breaker black - switch black
Switch white (black tape) - fan black (and blue if light), remaining black from ceiling (goes to other fan)
Connect all remaining whites together including the one from the fan.
Ceiling fan wiring - Ceiling Fans N More