If Trent spent two-fifths of the time swimming, that is the same as counting only 2 of the 5 equal boxes. All 5 boxes together is 50 minutes. Since each box is 10 minutes, 2 out of the 5 would be 20 minutes.
This is the same as writing:

Hope this helps! :)