Skip to main content
2 of 3
added 43 characters in body

Jelly (fork), 11 9 bytes

ṗ3SƘṀṢ€ṢṪ

Try it online! (this is the equivalent in normal Jelly)

This uses my fork of Jelly which includes the Ƙ (keep-like) quick to replace the commonly used <link>⁼¥Ƈ pattern. You can see this in the TIO link.

-2 bytes thanks to Jonathan Allan by using the sorting trick from his answer!

How it works

ṗ3SƘṀṢ€ṢṪ - Main link. Takes a list L on the left
ṗ3        - Cartesian Cube
    Ṁ     - Maximum of L
   Ƙ      - Keep triples whose     is like the maximum
  S       -                    sum
     Ṣ€   - Sort each
       Ṣ  - Sort
        Ṫ - Take the last one