Can you account for all the money you spent on the trip?
Literal
Trip [on-で] used money, all explanation [subject-が] attaches [question-か]?
説明がつく (an explanation attaches / to be accountable) is an idiomatic expression meaning something can be explained or justified. 全部 (all) emphasizes complete accountability. A pointed question about financial responsibility.