Table:
0
A
B
C
D
E
1
Number
Class
Name
Livery
Notes
2
31128
31
Charybdis
Fragonset Black
Now operated by Nemesis Rail .
3
31452
31
Minotaur
Fragonset Black
Now operated by Network Rail .
4
31454
31
The Heart of Wessex
InterCity Swallow
Now operated by Network Rail .
5
31468
31
Hydra
Fragonset Black
Now operated by Network Rail .
6
31601
31
Gauge O Guild
Wessex Trains Pink
Now operated by Network Rail .

Questions and formulas:
Question: What is the Class when Wessex Trains Pink is the Livery?
Formula: SUMIFS(B1,D1,"wessex trains pink")
Formula2: SUMIFS(B2:B6,D2:D6,"wessex trains pink")
Level: easy
Question: What is the Livery when the Number is 31468?
Formula: LET(query1,SUMMARIZE(D1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,2)=31468))
Formula2: LET(query1,SUMMARIZE(D2:D6,SUMX(A2:A6)),FILTER(query1,CHOOSECOLS(query1,2)=31468))
Level: hard