Let us assume that both vessels were at same temperature T and they were mixed at this same temperature T.
Let us assume that moles of hydrogen and oxygen gas are n1 and n2 .
and finally when mixed in a 5L vessel, let new pressure be P.
On solving, P = 275 mm.