Assume you have to chose one swimmer for each style and no swimmer can perform in more than one style. This is an unbalanced assignment problem. You can frame the linear programming problem as follows:
$$\begin{array}{|c|c|c|c|c|}
\hline
\text{Style\Swimmer}&1&2&3&4&5\\\hline
1&x_{11}&x_{12}&x_{13}&x_{14}&x_{15}\\\hline
2&x_{21}&x_{22}&x_{23}&x_{24}&x_{25}\\\hline
3&x_{31}&x_{32}&x_{33}&x_{34}&x_{35}\\\hline
4&x_{41}&x_{42}&x_{43}&x_{44}&x_{45}\\\hline
\end{array}
$$
In the above table I have arranged the swimmers column-wise and strokes row-wise. $x_{ij}=1$ iff swimmer $j$ is selected to compete in stroke $i$ and $0$ otherwise. Let $t_{ij}$ denote the personal best of swimmer $j$ in stroke $i$.
Since one swimmer can be selected for at-most one stroke, we require all column-sums to be $\le1$. Thus one set of constraints is $\forall j\left(\sum_{i=1}^4x_{ij}\le1\right)$.
For each stroke we must select exactly one swimmer, so the row-sum must be $1$. Thus another set of constraints is $\forall i\left(\sum_{j=1}^5x_{ij}=1\right)$.
The final set of constraints is that $0\le x_{ij}\le1$ and integral (i.e. $x_{ij}=0,1$). The objective, in my opinion, should be to minimize the total time $T=\sum_i\sum_jx_{ij}t_{ij}$. You can solve this LPP using integer programming or the Hungarian method to solve assignment problems.