Water pump bolts

Does the same 9/16 wrench or socket fit both bolt heads? Try the 3/8 bolt in upper hole in that hole.