Need to get data based on the results returned by array formula

Now I need to get:
- Find highest of Column(D) where Column(C)=1. "Value->1868". (i.e between 16:00-18:00 Hrs,highest for 1)
- From the same row of above result, get the column values for Column(G)->1256 and (H)->57
To get the first - highest of Column(D), I have the following Array formula which works fine. =MAX(IF((C10:C30)=1,D10:D30))
Now based on this, how do I get the highest of Col-G and H?