A little-known fact about cows is that they love puzzles! There is a mechanical puzzle made of three solid objects, each built from $1 \times 1$ unit squares glued together. Each object is a "connected" shape: from any square of the object you can reach any other square of the object by stepping north, south, east, or west through squares that belong to it.
An object can be moved by repeatedly sliding it one unit north, south, east, or west. The goal is to separate the objects, so that their bounding boxes (the smallest rectangle enclosing each object) no longer share any positive-area overlap with one another. Given the shapes and locations of the three objects, determine the minimum number of individual one-unit slides required to separate them.
All coordinates lie in the range $0$ to $9$, inclusive.
For example, suppose object 1 is made of $12$ squares, object 2 of $3$ squares, and object 3 of $5$ squares. Sliding object 3 east by one unit, then object 2 north by one unit, then object 1 west by three units leaves the three bounding boxes with no overlap, separating them in $5$ slides total.