Three sides of a triangle measure 3, 4, and 5. Solve for the length the shortest sides of a similar triangle whose longest has a length of 20.

Since the longest side of the similar triangle is 20, we can set up a proportion to find the lengths of the other two sides:

$\frac{x}{20} = \frac{3}{5}$.

Cross multiplying, we get $5x = 3 \cdot 20$, or $5x = 60$.

Dividing both sides by 5, we find that $x = 12$.

Therefore, the lengths of the shortest sides of the similar triangle are 12.